diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index a29f204c580..5a55549ca5b 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -458,6 +458,10 @@ class BuildPlugin implements Plugin { executable = new File(project.javaHome, 'bin/javadoc') } configureJavadocJar(project) + if (project.javaVersion == JavaVersion.VERSION_1_10) { + project.tasks.withType(Javadoc) { it.enabled = false } + project.tasks.getByName('javadocJar').each { it.enabled = false } + } } /** Adds a javadocJar task to generate a jar containing javadocs. */