diff --git a/java_tools/build.gradle b/java_tools/build.gradle index 27041f9a0d..1df3056f95 100644 --- a/java_tools/build.gradle +++ b/java_tools/build.gradle @@ -12,6 +12,12 @@ allprojects { testImplementation global_libs.junit } } + + gradle.projectsEvaluated { + tasks.withType(JavaCompile) { + options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + } + } } // gradlew allDeps diff --git a/java_tools/gradle.properties b/java_tools/gradle.properties index 7aa50437c1..837e0f58a5 100644 --- a/java_tools/gradle.properties +++ b/java_tools/gradle.properties @@ -1,2 +1,3 @@ # seems not to work sorry -# org.gradle.unsafe.configuration-cache=true \ No newline at end of file +# org.gradle.unsafe.configuration-cache=true +org.gradle.warning.mode=all