Skip to content

Commit

Permalink
Upgrade release tool gradle to run on jdk-21
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
  • Loading branch information
andrew-m-leonard committed Feb 12, 2024
1 parent 37ac254 commit 4173f1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions adopt-github-release/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repositories {
}
application {
mainClassName = 'net.adoptium.release.UploadFiles'
applicationDefaultJvmArgs = ['-Xmx1g']
}

dependencies {
Expand Down
5 changes: 1 addition & 4 deletions adopt-github-release/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -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='"-Xmx256m" "-Xms256m"'
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -185,7 +185,4 @@ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

echo "JAVA_OPTS=${JAVA_OPTS}"
echo "GRADLE_OPTS=${GRADLE_OPTS}"
echo "$JAVACMD" "$@"
exec "$JAVACMD" "$@"
2 changes: 0 additions & 2 deletions sbin/Release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ fi
if [ "$DRY_RUN" == "false" ]; then
cd adopt-github-release || exit 1
chmod +x gradlew
export JAVA_OPTS="-Xmx1g"
export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'"
GRADLE_USER_HOME=./gradle-cache ./gradlew --no-daemon run --args="--version \"${VERSION}\" --tag \"${TAG}\" --description \"${description}\" ${server} ${org} $RELEASE_OPTION $files"
# Run releaseCheck.sh to check that the correct number of artifacts are live
if [ -z "$TIMESTAMP" -a "$UPLOAD_TESTRESULTS_ONLY" = "false" ]; then
Expand Down

0 comments on commit 4173f1a

Please sign in to comment.