turn on java warnings and deprecation lint

This commit is contained in:
Matthew Kennedy 2023-07-19 14:45:10 -04:00 committed by Andrey
parent 945f4e5a82
commit 89203daf59
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,12 @@ allprojects {
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
tasks.withType(JavaExec).configureEach {
if (name.endsWith("main()")) {
// https://github.com/gradle/gradle/issues/21364

View File

@ -1,3 +1,5 @@
org.gradle.unsafe.configuration-cache=true
shadowVersion=8.1.1
shadowVersion=8.1.1
org.gradle.warning.mode=all