Allow the project to be built with Java 16
See gh-25171
This commit is contained in:
committed by
Andy Wilkinson
parent
181d0ee932
commit
1ccd8dae8a
@@ -69,7 +69,7 @@ processResources {
|
||||
}
|
||||
|
||||
compileJava {
|
||||
if ((!project.hasProperty("buildJavaHome")) && JavaVersion.current() == JavaVersion.VERSION_1_8) {
|
||||
if ((!project.hasProperty("toolchainVersion")) && JavaVersion.current() == JavaVersion.VERSION_1_8) {
|
||||
options.compilerArgs += ['-Xlint:-sunapi', '-XDenableSunApiLintControl']
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user