8000 build: include arrow dependency suggested compiler flags (#3844) · googleapis/java-bigquery@08772af · GitHub
[go: up one dir, main page]

Skip to content

Commit 08772af

Browse files
build: include arrow dependency suggested compiler flags (#3844)
* build: include arrow dependency suggested compiler flags This follows https://arrow.apache.org/docs/java/install.html, where we add the indicated `--add-opens` flag. This is meant to follow from #3811 (comment) * fix: only activate on JDK 9+
1 parent e9e5b69 commit 08772af

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

google-cloud-bigquery/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,27 @@
275275
</build>
276276

277277
<profiles>
278+
<profile>
279+
<id>arrow-config</id>
280+
<activation>
281+
<jdk>[9,)</jdk>
282+
</activation>
283+
<build>
284+
<plugins>
285+
<plugin>
286+
<groupId>org.apache.maven.plugins</groupId>
287+
<artifactId>maven-compiler-plugin</artifactId>
288+
<configuration>
289+
<encoding>UTF-8</encoding>
290+
<fork>true</fork>
291+
<compilerArgs>
292+
<arg>-J--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</arg>
293+
</compilerArgs>
294+
</configuration>
295+
</plugin>
296+
</plugins>
297+
</build>
298+
</profile>
278299
<profile>
279300
<id>java17</id>
280301
<activation>

0 commit comments

Comments
 (0)
0