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:
parent
da703a7383
commit
d4f914be2a
|
@ -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. */
|
||||||
|
|
Loading…
Reference in New Issue