Skip to content
Permalink
Browse files
fix(java): java 17 dependency arguments (#1046)
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 committed Oct 25, 2021
1 parent 6e64e45 commit 422efa0289b232118b446224c5e084fe3bc19491
Showing with 6 additions and 8 deletions.
  1. +4 −6 .kokoro/dependencies.sh
  2. +2 −2 synth.metadata
@@ -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)
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-bigtable.git",
"sha": "d2e03d20ae19538c2313b04ab9ada8fbc008f9f8"
"sha": "6e64e455180e0f51d2a189c750556708033b739f"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
"sha": "cb2755306975de4c54ea549c9deb25703b3731bb"
}
}
],

0 comments on commit 422efa0

Please sign in to comment.