Disables doclint in Java 8 to prevent build error from javadoc task.
Fixes gh-3767
This commit is contained in:
parent
945a21a3fb
commit
849c62b870
|
@ -99,6 +99,11 @@ task apidocs(type: Javadoc) {
|
|||
}
|
||||
}
|
||||
|
||||
if (JavaVersion.current().isJava8Compatible()) {
|
||||
// Turn off doclint in JDK 8 Javadoc (too strict on checks)
|
||||
apidocs.options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
|
||||
ext.apiSpec = copySpec {
|
||||
into('apidocs') {
|
||||
from(apidocs.destinationDir)
|
||||
|
|
|
@ -219,6 +219,13 @@ javadoc {
|
|||
}
|
||||
}
|
||||
|
||||
if (JavaVersion.current().isJava8Compatible()) {
|
||||
tasks.withType(Javadoc) {
|
||||
// Turn off doclint in JDK 8 Javadoc (too strict on checks)
|
||||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
}
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
classifier = 'javadoc'
|
||||
from javadoc
|
||||
|
|
Loading…
Reference in New Issue