Skip to content

Commit

Permalink
fix(java): java 17 dependency arguments (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolea2 authored Oct 25, 2021
1 parent a1f0421 commit cb27553
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions synthtool/gcp/templates/java_library/.kokoro/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ function determineMavenOpts() {
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
)

case $javaVersion in
"17")
if [[ $javaVersion == 17* ]]
then
# MaxPermSize is no longer supported as of jdk 17
echo -n "-Xmx1024m"
;;
*)
else
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
;;
esac
fi
}

export MAVEN_OPTS=$(determineMavenOpts)
Expand Down

0 comments on commit cb27553

Please sign in to comment.