From 51a9a6f26e26cc142ce2eee7a919163dcd75d9e9 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 3 Jun 2022 12:57:26 -0400 Subject: [PATCH] fix: make java.base fields accessible to fix java 17 runtime errors. (#688) * fix: java 17 reflection issue * add java.security --- java-os-login/google-cloud-os-login/pom.xml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index 5c14b19a58a6..e78f766278d1 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -96,6 +96,7 @@ + java9 @@ -109,6 +110,30 @@ + + java17 + + [17,) + + + + + org.apache.maven.plugins + maven-surefire-plugin + + --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 + + + + + +