Skip to content
Permalink
Browse files
fix(java): java 17 dependency arguments (#1266) (#107)
  • Loading branch information
gcf-owl-bot[bot] committed Oct 25, 2021
1 parent 63e8e93 commit 47a899b73033fd800d7671bd6d9d7e5575831ab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875
digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75
@@ -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 47a899b

Please sign in to comment.