Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JVM version for javadoc generation #2191

Merged
merged 2 commits into from
Apr 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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