aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
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("."))