Fix generating JavaDoc when running build with Java 9 or higher

Otherwise "current" is JDK 11, but "javadoc" from JDK 8 is executed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-06-08 08:51:58 +00:00
parent 219b1d0bce
commit c8f9fe4c2c
1 changed files with 1 additions and 3 deletions

View File

@ -232,9 +232,7 @@ javadoc {
failOnError = true failOnError = true
doFirst { doFirst {
options { options {
if (JavaVersion.current().isJava9Compatible()) { if (jdkVersion > 8) addBooleanOption('html5', true)
addBooleanOption('html5', true)
}
links 'https://poi.apache.org/apidocs/dev/' links 'https://poi.apache.org/apidocs/dev/'
links 'https://docs.oracle.com/javase/8/docs/api/' links 'https://docs.oracle.com/javase/8/docs/api/'
use = true use = true