Allow the project to be built with Java 16

See gh-25171
This commit is contained in:
dreis2211
2021-02-10 15:42:38 +01:00
committed by Andy Wilkinson
parent 181d0ee932
commit 1ccd8dae8a
9 changed files with 209 additions and 24 deletions

View File

@@ -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']
}
}