build:javadoc: use JavaVersion.current().isJava8Compatible()
This commit is contained in:
parent
23f5b3ad01
commit
4bdf682944
@ -37,7 +37,7 @@ 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
|
||||||
if (Double.parseDouble(System.getProperty("java.specification.version")) > 1.7){
|
if (JavaVersion.current().isJava8Compatible()){
|
||||||
options.addStringOption('Xdoclint:none', '-quiet')
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user