Treat warnings as errors when compiling
See gh-21271
This commit is contained in:
@@ -65,3 +65,9 @@ processResources {
|
||||
dependsOn reproducibleLoaderJar
|
||||
dependsOn reproducibleJarModeLayerToolsJar
|
||||
}
|
||||
|
||||
compileJava {
|
||||
if ((!project.hasProperty("buildJavaHome")) && JavaVersion.current() == JavaVersion.VERSION_1_8) {
|
||||
options.compilerArgs += ['-Xlint:-sunapi', '-XDenableSunApiLintControl']
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user