From b642b343c8b2e114a3b12ec684c80f1427beb1f7 Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Mon, 12 Feb 2024 16:16:33 +0000 Subject: [PATCH] Upgrade release tool gradle to run on jdk-21 Signed-off-by: Andrew Leonard --- adopt-github-release/gradlew | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adopt-github-release/gradlew b/adopt-github-release/gradlew index 9a1f6a9..48da2d1 100755 --- a/adopt-github-release/gradlew +++ b/adopt-github-release/gradlew @@ -44,7 +44,7 @@ APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx512m" "-Xms512m"' +DEFAULT_JVM_OPTS='"-Xmx256m" "-Xms256m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" @@ -177,8 +177,8 @@ save () { } APP_ARGS=$(save "$@") -# Disable gradle daemon, so that no background long running task is left running, and we can control JVM size from the client java invocation -GRADLE_OPTS="-Dorg.gradle.daemon=false ${GRADLE_OPTS}" +# Specify the required gradle daemon JVM heap settings +GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx1g ${GRADLE_OPTS}" # Collect all arguments for the java command, following the shell quoting and substitution rules eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"