mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
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 {
|
ext.apiSpec = copySpec {
|
||||||
into('apidocs') {
|
into('apidocs') {
|
||||||
from(apidocs.destinationDir)
|
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) {
|
task javadocJar(type: Jar) {
|
||||||
classifier = 'javadoc'
|
classifier = 'javadoc'
|
||||||
from javadoc
|
from javadoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user