mirror of https://github.com/apache/poi.git
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:
parent
c0cf4ebc6b
commit
72ce9751b1
12
build.gradle
12
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("."))
|
||||
|
|
Loading…
Reference in New Issue