Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Commit b280ec0

Browse files
fix(java): java 17 dependency arguments (#571)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/3b692f97-a251-49a8-acd4-f262f4693811/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: googleapis/synthtool@cb27553
1 parent f18e387 commit b280ec0

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.kokoro/dependencies.sh

Lines changed: 4 additions & 6 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-compute.git",
7-
"sha": "4079fb224c99175e9ef1b361c2127683695d5342"
7+
"sha": "f18e38715485c355370c46302152000927dd673a"
88
}
99
},
1010
{
@@ -18,7 +18,7 @@
1818
"git": {
1919
"name": "synthtool",
2020
"remote": "https://github.com/googleapis/synthtool.git",
21-
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
21+
"sha": "cb2755306975de4c54ea549c9deb25703b3731bb"
2222
}
2323
}
2424
],

0 commit comments

Comments
 (0)