Broaden java compilation linting

Closes gh-825
This commit is contained in:
Andy Wilkinson
2022-07-15 10:45:06 +01:00
parent 835cd24695
commit 6ab923b470

View File

@@ -63,11 +63,8 @@ subprojects { subproject ->
}
}
compileJava {
options.compilerArgs = [ "-Xlint:deprecation", "-Xlint:-options", "-Werror" ]
}
tasks.withType(JavaCompile) {
options.compilerArgs = [ "-Werror", "-Xlint:unchecked", "-Xlint:deprecation", "-Xlint:rawtypes", "-Xlint:varargs", "-Xlint:options" ]
options.encoding = "UTF-8"
}