diff options
author | Dominik Stadler <centic@apache.org> | 2021-04-06 06:11:10 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-04-06 06:11:10 +0000 |
commit | 72ce9751b1e238f763b2b23cc55a31fce2a74f00 (patch) | |
tree | 1f58e5b1dc5f608f685c781b829b819ae7673216 /build.gradle | |
parent | c0cf4ebc6b6b0fa5e4d8706b1bd37c26bae5277f (diff) | |
download | poi-72ce9751b1e238f763b2b23cc55a31fce2a74f00.tar.gz poi-72ce9751b1e238f763b2b23cc55a31fce2a74f00.zip |
Adjust JavaDoc target to act similar as the one in the build.xml
Set memory and set "lint:non" on Java 8 to not be stricter than the Ant-build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 33272d5d7f..aa29309d2b 100644 --- a/build.gradle +++ b/build.gradle @@ -211,6 +211,18 @@ subprojects { jenkins.dependsOn rat } +// Make JavaDoc behave similar to Ant, i.e. be a bit more lenient +// and define amount of memory +// https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html +if (JavaVersion.current().isJava8Compatible()) { + allprojects { + tasks.withType(Javadoc) { + options.addStringOption('Xdoclint:none', '-quiet') + maxMemory="384M" + } + } +} + rat { // Input directory, defaults to '.' inputDir.set(file(".")) |