aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/build.gradle
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-06-08 08:51:58 +0000
committerDominik Stadler <centic@apache.org>2023-06-08 08:51:58 +0000
commitc8f9fe4c2c01aa896c80de7b43725788b4ce6c4a (patch)
treed8adacc2fd964eadb68508b20dd6b463b7e9d3e4 /poi-ooxml/build.gradle
parent219b1d0bcea1292d9680b85e4a175928d31599bf (diff)
downloadpoi-c8f9fe4c2c01aa896c80de7b43725788b4ce6c4a.tar.gz
poi-c8f9fe4c2c01aa896c80de7b43725788b4ce6c4a.zip
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
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r--poi-ooxml/build.gradle4
1 files changed, 1 insertions, 3 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index ba5c390283..41cdb86932 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -232,9 +232,7 @@ javadoc {
failOnError = true
doFirst {
options {
- if (JavaVersion.current().isJava9Compatible()) {
- addBooleanOption('html5', true)
- }
+ if (jdkVersion > 8) addBooleanOption('html5', true)
links 'https://poi.apache.org/apidocs/dev/'
links 'https://docs.oracle.com/javase/8/docs/api/'
use = true