build: quick fix to run javadoc with jdk < 1.8
This commit is contained in:
parent
d6c6884066
commit
23f5b3ad01
@ -37,7 +37,9 @@ javadoc {
|
|||||||
options.author = "true"
|
options.author = "true"
|
||||||
options.use = "true"
|
options.use = "true"
|
||||||
//disable doclint for JDK8, more quiet output
|
//disable doclint for JDK8, more quiet output
|
||||||
options.addStringOption('Xdoclint:none', '-quiet')
|
if (Double.parseDouble(System.getProperty("java.specification.version")) > 1.7){
|
||||||
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') {
|
task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user