Skip to content

Commit

Permalink
scripts: fix release script (#3173)
Browse files Browse the repository at this point in the history
Motivation:

When we upgraded gradle from 8.8 to 8.12 the JVM reporting format changed
and that broke our release script in the part that ensures we're using the
correct JVM to build docs.

Modifications:

Fix the script
  • Loading branch information
bryce-anderson authored Jan 15, 2025
1 parent 4eca06c commit 65d265e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ if [ "$#" -ne "2" ]; then
fi

# Enforce JDK17 to get latest LTS javadoc format/features (search, etc.):
java_version=$(./gradlew --no-daemon -version | grep 'Launcher JVM:' | awk -F\. '{gsub(/Launcher JVM:[ \t]*/,"",$1); print $1"."$2}')
java_version=$(./gradlew --no-daemon -version | grep 'Launcher JVM:' | \
awk -F\. '{gsub(/Launcher JVM:[ \t]*/,"",$1); print $1"."$2}')
if [ "$java_version" != "17.0" ]; then
echo "Docs can be published only using Java 17, current version: $java_version"
exit 1
Expand Down

0 comments on commit 65d265e

Please sign in to comment.