]> source.dussan.org Git - poi.git/commitdiff
Adjust JavaDoc target to act similar as the one in the build.xml
authorDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 06:11:10 +0000 (06:11 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 06:11:10 +0000 (06:11 +0000)
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

build.gradle

index 33272d5d7fae057a57267badedc6dc0a92fc46d5..aa29309d2b3213cc97c0b7f89a228e4961e62d17 100644 (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("."))