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

0 comments on commit 4cebefa

Please sign in to comment.