Skip to content

Commit

Permalink
scripts: fix release script
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 committed Jan 15, 2025
1 parent 3fbc367 commit c70906f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ "$#" -ne "2" ]; then
fi

# Enforce JDK17 to get latest LTS javadoc format/features (search, etc.):
java_version=$(./gradlew --no-daemon -version | grep ^JVM: | awk -F\. '{gsub(/^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 c70906f

Please sign in to comment.