Build: enable Werror for all compileJava tasks

This commit is contained in:
Alexander Udalov
2021-08-04 00:05:32 +02:00
parent c821aba3bd
commit 89b3013294
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -443,6 +443,12 @@ allprojects {
project.configureShadowJarSubstitutionInCompileClasspath()
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:deprecation")
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Werror")
}
val commonCompilerArgs = listOfNotNull(
"-Xopt-in=kotlin.RequiresOptIn",
"-progressive".takeIf { hasProperty("test.progressive.mode") }