Skip to content
Permalink
Browse files
fix(java): java 17 dependency arguments (#1683)
  • Loading branch information
stephaniewang526 committed Oct 26, 2021
1 parent c1a5d73 commit bef2705208abfc837d16f01758c802d817420dd4
Showing with 4 additions and 6 deletions.
  1. +4 −6 .kokoro/dependencies.sh
@@ -37,15 +37,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)

0 comments on commit bef2705

Please sign in to comment.