Skip to content

Commit

Permalink
chore: Add java17 profile in jar-parent for graalvm (googleapis#8676)
Browse files Browse the repository at this point in the history
* chore: Add in os-login graalvm profile

* chore: Add java17 profile

* chore: Add --add-opens for java.lang
  • Loading branch information
lqiu96 authored Oct 26, 2022
1 parent f1f2c92 commit 6295dcc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions google-cloud-jar-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,32 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>java17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/java.math=ALL-UNNAMED
--add-opens=java.base/sun.security.rsa=ALL-UNNAMED
--add-opens=java.base/sun.security.pkcs=ALL-UNNAMED
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
--add-opens=java.base/sun.security.util=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down

0 comments on commit 6295dcc

Please sign in to comment.