diff --git a/build.gradle b/build.gradle index 1f3d9a189a..ca338c8c08 100644 --- a/build.gradle +++ b/build.gradle @@ -95,6 +95,18 @@ spotbugsTest { java.sourceCompatibility = JavaVersion.VERSION_11 java.targetCompatibility = JavaVersion.VERSION_11 + +compileJava { + options.compilerArgs = ["-Xlint:all"] + options.failOnError = false +} + +compileTestJava { + options.compilerArgs = ["-Xlint:all"] + options.failOnError = false +} + + licenseHeaders.enabled = true // The following check that have never be enabled in security