Skip to content

Commit 2cda82d

Browse files
Scottmitchbondolo
andauthored
Update JVM version for javadoc generation (#2191)
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 <bondolo@users.noreply.github.com>
1 parent 470759e commit 2cda82d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/publish-docs.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ function clean_up_gh_pages() {
5252
rm -rf gh-pages
5353
}
5454

55-
# Enforce JDK11 to keep javadoc format consistent for all versions:
55+
# Enforce JDK17 to get latest LTS javadoc format/features (search, etc.):
5656
java_version=$(./gradlew --no-daemon -version | grep ^JVM: | awk -F\. '{gsub(/^JVM:[ \t]*/,"",$1); print $1"."$2}')
57-
if [ "$java_version" != "11.0" ]; then
58-
echo "Docs can be published only using Java 11, current version: $java_version"
57+
if [ "$java_version" != "17.0" ]; then
58+
echo "Docs can be published only using Java 17, current version: $java_version"
5959
exit 1
6060
fi
6161

0 commit comments

Comments
 (0)