From ec07294dc67d884a8bd6b0c4c9b9b1cdfb6e95c3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 27 Oct 2021 10:42:32 -0700 Subject: [PATCH] fix(java): java 17 dependency arguments (#802) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ecf5415c-36fd-4c62-9769-75514bed6055/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/cb2755306975de4c54ea549c9deb25703b3731bb --- .kokoro/dependencies.sh | 10 ++++------ synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9a5105d7e..d7476cfe9 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -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) diff --git a/synth.metadata b/synth.metadata index 5967e3ebe..699b4b1da 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-firestore.git", - "sha": "6e34276a47d4ed5dc0c5ba1ef3887ca3ecdfd619" + "sha": "f848bfc5f745a22a2876ae1f38e37bc87c274388" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f" + "sha": "cb2755306975de4c54ea549c9deb25703b3731bb" } } ],