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