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

Commit 895efc9

Browse files
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
1 parent 397e7b1 commit 895efc9

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.kokoro/dependencies.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ function determineMavenOpts() {
3838
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
3939
)
4040

41-
case $javaVersion in
42-
"17")
41+
if [[ $javaVersion == 17* ]]
42+
then
4343
# MaxPermSize is no longer supported as of jdk 17
4444
echo -n "-Xmx1024m"
45-
;;
46-
*)
45+
else
4746
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
48-
;;
49-
esac
47+
fi
5048
}
5149

5250
export MAVEN_OPTS=$(determineMavenOpts)

synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-monitoring.git",
7-
"sha": "d27ff7fb0614e136ef85bece07adb65802fb8fbb"
7+
"sha": "397e7b1684eef6253643f9efe3998097b79ff491"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
22+
"sha": "cb2755306975de4c54ea549c9deb25703b3731bb"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)