Skip to content

Commit 8d3d30e

Browse files
committed
fix(bigquerystorage): configure native profile in bigquerystorage-it to fix GraalVM test failures
1 parent 12b2cc8 commit 8d3d30e

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

  • java-bigquerystorage/google-cloud-bigquerystorage-it

java-bigquerystorage/google-cloud-bigquerystorage-it/pom.xml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,62 @@
241241
</plugin>
242242
</plugins>
243243
</build>
244+
245+
<profiles>
246+
<profile>
247+
<id>native</id>
248+
<build>
249+
<plugins>
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-surefire-plugin</artifactId>
253+
<version>${surefire.version}</version>
254+
<dependencies>
255+
<dependency>
256+
<groupId>org.junit.jupiter</groupId>
257+
<artifactId>junit-jupiter-engine</artifactId>
258+
<version>${junit-vintage-engine.version}</version>
259+
</dependency>
260+
<dependency>
261+
<groupId>org.junit.vintage</groupId>
262+
<artifactId>junit-vintage-engine</artifactId>
263+
<version>${junit-vintage-engine.version}</version>
264+
</dependency>
265+
</dependencies>
266+
<configuration>
267+
<skipTests>false</skipTests>
268+
<!-- Include all tests during native image testing. -->
269+
<excludes combine.self="override">
270+
<exclude>**/ITBigQueryWrite*RetryTest.java</exclude>
271+
</excludes>
272+
<includes>
273+
<include>**/IT*.java</include>
274+
</includes>
275+
</configuration>
276+
</plugin>
277+
<plugin>
278+
<groupId>org.graalvm.buildtools</groupId>
279+
<artifactId>native-maven-plugin</artifactId>
280+
<version>${native-maven-plugin.version}</version>
281+
<extensions>true</extensions>
282+
<executions>
283+
<execution>
284+
<id>test-native</id>
285+
<goals>
286+
<goal>test</goal>
287+
</goals>
288+
<phase>test</phase>
289+
</execution>
290+
</executions>
291+
<configuration>
292+
<buildArgs>
293+
<buildArg>--no-fallback</buildArg>
294+
<buildArg>--no-server</buildArg>
295+
</buildArgs>
296+
</configuration>
297+
</plugin>
298+
</plugins>
299+
</build>
300+
</profile>
301+
</profiles>
244302
</project>

0 commit comments

Comments
 (0)