|
44 | 44 | <groupId>org.codehaus.mojo</groupId> |
45 | 45 | <artifactId>flatten-maven-plugin</artifactId> |
46 | 46 | </plugin> |
47 | | - <plugin> |
48 | | - <groupId>org.apache.maven.plugins</groupId> |
49 | | - <artifactId>maven-dependency-plugin</artifactId> |
50 | | - <configuration> |
51 | | - <usedDependencies> |
52 | | - <dependency>com.google.auto.value:auto-value</dependency> |
53 | | - </usedDependencies> |
54 | | - </configuration> |
55 | | - </plugin> |
56 | 47 | </plugins> |
57 | 48 | </build> |
58 | 49 | <dependencies> |
|
80 | 71 | <groupId>com.google.api</groupId> |
81 | 72 | <artifactId>api-common</artifactId> |
82 | 73 | </dependency> |
83 | | - <dependency> |
84 | | - <groupId>com.google.auto.value</groupId> |
85 | | - <artifactId>auto-value</artifactId> |
86 | | - <version>${auto-value.version}</version> |
87 | | - </dependency> |
88 | 74 | <dependency> |
89 | 75 | <groupId>com.google.auto.value</groupId> |
90 | 76 | <artifactId>auto-value-annotations</artifactId> |
|
285 | 271 | <groupId>com.google.api.grpc</groupId> |
286 | 272 | <artifactId>grpc-google-cloud-bigquerystorage-v1</artifactId> |
287 | 273 | </dependency> |
288 | | - |
| 274 | + |
289 | 275 | <!-- Need testing utility classes for generated gRPC clients tests --> |
290 | 276 | <dependency> |
291 | 277 | <groupId>com.google.api</groupId> |
|
294 | 280 | <scope>test</scope> |
295 | 281 | </dependency> |
296 | 282 | </dependencies> |
| 283 | + |
| 284 | + <profiles> |
| 285 | + <profile> |
| 286 | + <id>arrow-config</id> |
| 287 | + <activation> |
| 288 | + <jdk>[9,)</jdk> |
| 289 | + </activation> |
| 290 | + <build> |
| 291 | + <plugins> |
| 292 | + <plugin> |
| 293 | + <groupId>org.apache.maven.plugins</groupId> |
| 294 | + <artifactId>maven-compiler-plugin</artifactId> |
| 295 | + <configuration> |
| 296 | + <encoding>UTF-8</encoding> |
| 297 | + <fork>true</fork> |
| 298 | + <compilerArgs> |
| 299 | + <arg>-J--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</arg> |
| 300 | + <arg>-J--add-opens=java.base/java.nio=java-base,ALL-UNNAMED</arg> |
| 301 | + </compilerArgs> |
| 302 | + </configuration> |
| 303 | + </plugin> |
| 304 | + </plugins> |
| 305 | + </build> |
| 306 | + </profile> |
| 307 | + <profile> |
| 308 | + <!-- This profile is used to enable GraalVM native image testing in BQ storage--> |
| 309 | + <id>customNative</id> |
| 310 | + <dependencies> |
| 311 | + <!-- Add this dependency to resolve class org.opentest4j.TestAbortedException --> |
| 312 | + <dependency> |
| 313 | + <groupId>org.opentest4j</groupId> |
| 314 | + <artifactId>opentest4j</artifactId> |
| 315 | + <version>${opentest4j.version}</version> |
| 316 | + </dependency> |
| 317 | + <dependency> |
| 318 | + <groupId>org.junit.vintage</groupId> |
| 319 | + <artifactId>junit-vintage-engine</artifactId> |
| 320 | + <version>${junit-vintage-engine.version}</version> |
| 321 | + </dependency> |
| 322 | + </dependencies> |
| 323 | + <build> |
| 324 | + <plugins> |
| 325 | + <plugin> |
| 326 | + <groupId>org.apache.maven.plugins</groupId> |
| 327 | + <artifactId>maven-surefire-plugin</artifactId> |
| 328 | + <version>${surefire.version}</version> |
| 329 | + <dependencies> |
| 330 | + <dependency> |
| 331 | + <groupId>org.junit.vintage</groupId> |
| 332 | + <artifactId>junit-vintage-engine</artifactId> |
| 333 | + <version>${junit-vintage-engine.version}</version> |
| 334 | + </dependency> |
| 335 | + </dependencies> |
| 336 | + <configuration> |
| 337 | + <!-- Include all tests during native image testing. --> |
| 338 | + <excludes combine.self="override"> |
| 339 | + <exclude>**/ITBigQueryWrite*RetryTest.java</exclude> |
| 340 | + </excludes> |
| 341 | + <includes> |
| 342 | + <include>**/IT*.java</include> |
| 343 | + <!-- Enable unit tests in generated libraries for native image testing. --> |
| 344 | + <include>**/*ClientTest.java</include> |
| 345 | + </includes> |
| 346 | + </configuration> |
| 347 | + </plugin> |
| 348 | + <plugin> |
| 349 | + <groupId>org.graalvm.buildtools</groupId> |
| 350 | + <artifactId>native-maven-plugin</artifactId> |
| 351 | + <version>${native-maven-plugin.version}</version> |
| 352 | + <extensions>true</extensions> |
| 353 | + <executions> |
| 354 | + <execution> |
| 355 | + <id>test-native</id> |
| 356 | + <goals> |
| 357 | + <goal>test</goal> |
| 358 | + </goals> |
| 359 | + <phase>test</phase> |
| 360 | + </execution> |
| 361 | + </executions> |
| 362 | + <configuration> |
| 363 | + <buildArgs> |
| 364 | + <buildArg>--no-fallback</buildArg> |
| 365 | + <buildArg>--no-server</buildArg> |
| 366 | + </buildArgs> |
| 367 | + </configuration> |
| 368 | + </plugin> |
| 369 | + </plugins> |
| 370 | + </build> |
| 371 | + </profile> |
| 372 | + <profile> |
| 373 | + <id>java17</id> |
| 374 | + <activation> |
| 375 | + <jdk>[17,)</jdk> |
| 376 | + <property> |
| 377 | + <!-- |
| 378 | + In Java 8 unit tests where we run tests in Java 8 after building |
| 379 | + bytecode on Java 17, we don't want to add the argLine |
| 380 | + --> |
| 381 | + <name>!jvm</name> |
| 382 | + </property> |
| 383 | + </activation> |
| 384 | + <build> |
| 385 | + <plugins> |
| 386 | + <plugin> |
| 387 | + <groupId>org.apache.maven.plugins</groupId> |
| 388 | + <artifactId>maven-surefire-plugin</artifactId> |
| 389 | + <configuration> |
| 390 | + <argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine> |
| 391 | + </configuration> |
| 392 | + </plugin> |
| 393 | + </plugins> |
| 394 | + </build> |
| 395 | + </profile> |
| 396 | + </profiles> |
297 | 397 | </project> |
0 commit comments