Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
fix(java): java 17 dependency arguments (#228)
Browse files Browse the repository at this point in the history
Source-Author: kolea2 <45548808+kolea2@users.noreply.github.com>
Source-Date: Mon Oct 25 11:06:10 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: cb2755306975de4c54ea549c9deb25703b3731bb
Source-Link: googleapis/synthtool@cb27553
  • Loading branch information
yoshi-automation authored Nov 3, 2021
1 parent 58c9a81 commit e609515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .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
4 changes: 2 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-iam.git",
"sha": "4a64f7fb47f860e06bd4b23045f22a37b8d4d09b"
"sha": "58c9a81c55274b64c5e6877c9f909466a672c385"
}
},
{
Expand All @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
"sha": "cb2755306975de4c54ea549c9deb25703b3731bb"
}
}
],
Expand Down

0 comments on commit e609515

Please sign in to comment.