Browse Source

Build: Treat errorprone warnings as errors

pull/270/head
weisj 3 years ago
parent
commit
9567ab1b9b
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 2
      build.gradle.kts

2
build.gradle.kts

@ -222,7 +222,7 @@ allprojects {
"annotationProcessor"(libs.tools.errorprone.guava)
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000", "-Xmaxwarns", "10000"))
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000", "-Xmaxwarns", "10000", "-Werror"))
options.errorprone {
errorproneArgs.add("-XepExcludedPaths:.*/javacc/.*")
disableWarningsInGeneratedCode.set(true)

Loading…
Cancel
Save