Skip to content

Commit

Permalink
Use errorprone with the gradle errorprone plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Sep 7, 2024
1 parent 21bdf30 commit e0f9410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ subprojects {

// Standard libraries added to all projects
dependencies {
annotationProcessor libs.errorprone.annotationprocessor
errorprone(libs.errorprone.core)
compileOnly libs.errorprone.annotations

testAnnotationProcessor libs.errorprone.annotationprocessor
testImplementation libs.junit
}
}
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
jackson = "2.17.2"
retrofit = "2.11.0"
dropwizard = "4.0.8"
errorprone = "2.31.0"

[libraries]
errorprone_annotationprocessor = "com.google.errorprone:error_prone_core:2.30.0"
errorprone_annotations = { module = "com.google.errorprone:error_prone_annotations", version.ref = "errorprone" }
errorprone_core = { module = "com.google.errorprone:error_prone_core", version.ref = "errorprone" }

jackson-bind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }
jackson-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml", version.ref = "jackson" }
Expand Down

0 comments on commit e0f9410

Please sign in to comment.