Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

fix: make java.base fields accessible to fix java 17 runtime errors. #688

Merged
merged 10 commits into from
Jun 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions google-cloud-os-login/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
</dependency>
</dependencies>


<profiles>
<profile>
<id>java9</id>
Expand All @@ -109,6 +110,30 @@
</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</argLine>
</configuration>
</plugin>
</plugins>
</build>

</profile>
</profiles>

<build>
Expand Down