From 5b8bdcd1110e30d9b00796e940bdb9288686fa3e Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 8 May 2018 07:38:28 -0400 Subject: [PATCH] Build: Switch to building javadoc with html5 (#30440) We accidentally switched back to html4 in #30279 when we removed the gradle hack that we were using to convert the projects one by one. --- .../main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index a44b9c849d3..18f264690fa 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -549,6 +549,11 @@ class BuildPlugin implements Plugin { javadoc.classpath = javadoc.getClasspath().filter { f -> return classes.contains(f) == false } + /* + * Generate docs using html5 to suppress a warning from `javadoc` + * that the default will change to html5 in the future. + */ + javadoc.options.addBooleanOption('html5', true) } configureJavadocJar(project) }