From 316ec10423d75a03c37f0a1f79425f6ed37d8d47 Mon Sep 17 00:00:00 2001 From: Chris Mckay Date: Tue, 30 Oct 2018 10:05:19 +1000 Subject: [PATCH] Minor/javadoc warnings as errors (#171) --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 5235526d92..e0f544e6c8 100644 --- a/build.gradle +++ b/build.gradle @@ -207,6 +207,11 @@ allprojects { // Normalise Xdoclint behaviour across JDKs (OpenJDK 8 is more lenient than Oracle JDK by default). javadoc { options.addStringOption('Xdoclint:all', '-quiet') + if (JavaVersion.current() == JavaVersion.VERSION_1_8) { + options.addStringOption('Xwerror', '-quiet') + } else { + options.addStringOption('Xwerror', '-html5') + } options.encoding = 'UTF-8' }