Skip to content

Commit

Permalink
only run errorpone in java 17+
Browse files Browse the repository at this point in the history
might be strange for devs working with java11, but our CI will
catch it anyway

Signed-off-by: Appu Goundan <[email protected]>
  • Loading branch information
loosebazooka committed Oct 25, 2024
1 parent cc82dd2 commit a571026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
java
}

if (!project.hasProperty("skipErrorprone")) {
if (!project.hasProperty("skipErrorprone") && JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
apply(plugin = "net.ltgt.errorprone")

dependencies {
"errorprone"("com.google.errorprone:error_prone_core:2.31.0")
"errorprone"("com.google.errorprone:error_prone_core:2.34.0")
"annotationProcessor"("com.google.guava:guava-beta-checker:1.0")
}

Expand Down

0 comments on commit a571026

Please sign in to comment.