Skip to content

Commit de01c87

Browse files
committed
MLE-23593 Treating compiler warnings as errors
We'll see how this goes, now that we have no warnings.
1 parent 2222254 commit de01c87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ subprojects {
3434
testImplementation 'org.slf4j:slf4j-api:2.0.17'
3535
}
3636

37-
// Allows for quickly identifying compiler warnings.
37+
// Allows for quickly identifying compiler warnings and treating them as errors.
3838
tasks.withType(JavaCompile) {
39-
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation"]
39+
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation", "-Werror"]
4040
options.deprecation = true
4141
options.warnings = true
4242
}

0 commit comments

Comments
 (0)