Skip to content

Commit

Permalink
Use Error Prone 2.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Sep 12, 2024
1 parent ebb2cf1 commit 2348bb3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

ext.errorproneVersion = '2.31.0'
ext {
errorproneVersion = '2.32.0'
isJava17orHigher = JavaVersion.current() >= JavaVersion.VERSION_17
isJava21orHigher = JavaVersion.current() >= JavaVersion.VERSION_21
}

dependencies {
compileOnly "com.google.errorprone:error_prone_annotations:${errorproneVersion}"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
Expand Down Expand Up @@ -84,6 +86,7 @@ tasks.withType(JavaCompile).configureEach {
// disable('StringSplitter') // Obscure case isn't likely.
disable('AnnotateFormatMethod') // Error Prone doesn't know about Checker Framework @FormatMethod
}
options.errorprone.enabled = isJava17orHigher
}

// Checker Framework pluggable type-checking
Expand Down

0 comments on commit 2348bb3

Please sign in to comment.