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
This commit is contained in:
Dominik Stadler 2021-04-06 06:11:10 +00:00
parent c0cf4ebc6b
commit 72ce9751b1
1 changed files with 12 additions and 0 deletions

View File

@ -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("."))