Browse Source

CI: Disable Werror by default

We enable it on the errorprone CI though
spotless
weisj 3 years ago
parent
commit
4aa4b1ebd1
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 2
      .github/workflows/errorprone.yml
  2. 5
      build.gradle.kts

2
.github/workflows/errorprone.yml

@ -11,4 +11,4 @@ jobs:
with:
fetch-depth: 10
- name: Check
run: ./gradlew compileJava -PenableErrorProne
run: ./gradlew compileJava -PenableErrorProne -PWerror

5
build.gradle.kts

@ -229,7 +229,10 @@ allprojects {
}
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000", "-Xmaxwarns", "10000", "-Werror"))
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000", "-Xmaxwarns", "10000"))
if (props.bool("Werror", false)) {
options.compilerArgs.add("-Werror")
}
options.errorprone {
errorproneArgs.add("-XepExcludedPaths:.*/javacc/.*")
disableWarningsInGeneratedCode.set(true)

Loading…
Cancel
Save