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

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(java): java 17 dependency arguments (#714)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/41078d42-2bde-4e13-8890-48a1865420aa/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@cb27553
  • Loading branch information
yoshi-automation committed Oct 25, 2021
1 parent 397e7b1 commit 895efc9
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
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
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-monitoring.git",
"sha": "d27ff7fb0614e136ef85bece07adb65802fb8fbb"
"sha": "397e7b1684eef6253643f9efe3998097b79ff491"
}
},
{
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 895efc9

Please sign in to comment.