Disable Javadocs on JDK 10

There appears to be a bug in JDK 10 for generating Javadocs with some
nested anonymous classes. This commit disables these on JDK 10 until the
upstream issue is resolved.

Relates #27952
This commit is contained in:
Jason Tedor 2017-12-21 17:26:20 -05:00 committed by GitHub
parent da703a7383
commit d4f914be2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -458,6 +458,10 @@ class BuildPlugin implements Plugin<Project> {
executable = new File(project.javaHome, 'bin/javadoc') executable = new File(project.javaHome, 'bin/javadoc')
} }
configureJavadocJar(project) 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. */ /** Adds a javadocJar task to generate a jar containing javadocs. */