mirror of https://github.com/apache/poi.git
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:
parent
219b1d0bce
commit
c8f9fe4c2c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue