aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad/build.gradle
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-04-13 21:37:33 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-04-13 21:37:33 +0000
commit088d1dd19728d4a49f84d718e8399974b021f0b3 (patch)
tree0e5420aec119820c4ae325979aa71a03c8196809 /poi-scratchpad/build.gradle
parent240b02daecdabd3e314bd662d56665cbb6cdf5fd (diff)
downloadpoi-088d1dd19728d4a49f84d718e8399974b021f0b3.tar.gz
poi-088d1dd19728d4a49f84d718e8399974b021f0b3.zip
:poi-scratchpad - fix javadocs - link to dependent/external project javadocs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888746 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad/build.gradle')
-rw-r--r--poi-scratchpad/build.gradle23
1 files changed, 18 insertions, 5 deletions
diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle
index 0bf5032038..ca5c05bf4c 100644
--- a/poi-scratchpad/build.gradle
+++ b/poi-scratchpad/build.gradle
@@ -31,6 +31,7 @@ final String VERSIONS9 = 'META-INF/versions/9'
configurations {
tests
+ javadocs
}
sourceSets {
@@ -56,6 +57,9 @@ dependencies {
testImplementation project(path: ':poi', configuration: 'tests')
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
+
+ javadocs project(':poi')
+ javadocs project(':poi-ooxml')
}
final MODULE_NAME = 'org.apache.poi.scratchpad'
@@ -202,11 +206,20 @@ test {
}
javadoc {
-// fails currently, need to fix the sources
- failOnError = false
-// if(JavaVersion.current().isJava9Compatible()) {
-// options.addBooleanOption('html5', true)
-// }
+ failOnError = true
+ doFirst {
+ options {
+ if (JavaVersion.current().isJava9Compatible()) {
+ addBooleanOption('html5', true)
+ }
+ links 'https://poi.apache.org/apidocs/dev/'
+ links 'https://docs.oracle.com/javase/8/docs/api/'
+ use = true
+ splitIndex = true
+ source = "1.8"
+ classpath += configurations.javadocs.files
+ }
+ }
}
publishing {