Disables doclint in Java 8 to prevent build error from javadoc task.

Fixes gh-3767
This commit is contained in:
Joe Grandja 2016-04-11 17:10:17 -04:00
parent 945a21a3fb
commit 849c62b870
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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