Skip to content

Commit

Permalink
Update JVM version for javadoc generation (#2191)
Browse files Browse the repository at this point in the history
Motivation:
JDK11 was used for javadoc generation because of new features (search, ..).
JDK17 is now the latest LTS and we can take advantage of latest javadoc
features.

Co-authored-by: Mike Duigou <[email protected]>
  • Loading branch information
Scottmitch and bondolo authored Apr 16, 2022
1 parent 470759e commit 2cda82d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function clean_up_gh_pages() {
rm -rf gh-pages
}

# Enforce JDK11 to keep javadoc format consistent for all versions:
# 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}')
if [ "$java_version" != "11.0" ]; then
echo "Docs can be published only using Java 11, current version: $java_version"
if [ "$java_version" != "17.0" ]; then
echo "Docs can be published only using Java 17, current version: $java_version"
exit 1
fi

Expand Down

0 comments on commit 2cda82d

Please sign in to comment.