Skip to content

Commit

Permalink
Disable error prone on legacy proto check
Browse files Browse the repository at this point in the history
  • Loading branch information
chokoswitch committed Oct 2, 2024
1 parent 27757ca commit f84ab21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ tasks {
withType<JavaCompile>().configureEach {
with(options) {
errorprone {
if (!System.getenv("PROTOBUF_VERSION").orEmpty().isEmpty()) {
// Newer versions of error prone do not work with older protobuf, and we
// don't need it in our legacy check anyways.
enabled = false
}

disableWarningsInGeneratedCode.set(true)
allDisabledChecksAsWarnings.set(true)

Expand Down
3 changes: 1 addition & 2 deletions dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ val DEPENDENCY_BOMS = listOf(
val DEPENDENCY_SETS = listOf(
DependencySet(
"com.google.errorprone",
// Error Prone versions tied to protobuf
if (System.getenv("PROTOBUF_VERSION").orEmpty().isEmpty()) "2.33.0" else "2.18.0",
"2.33.0",
listOf("error_prone_annotations", "error_prone_core")
)
)
Expand Down

0 comments on commit f84ab21

Please sign in to comment.