Skip to content

Commit 49108dc

Browse files
committed
feat(errorprone): require JDK 17+ for Error Prone
Error Prone 2.42.0 ships Java 17 class files, skip the custom checker below JDK 17.
1 parent 3ce8ec5 commit 49108dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

errorprone/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
if (!JavaVersion.current().isJava11Compatible()) {
2-
// ErrorProne core requires JDK 11+; skip this module on JDK 8
1+
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
2+
// ErrorProne core 2.42.0 ships Java 17 bytecode; skip below JDK 17
33
tasks.withType(JavaCompile).configureEach { enabled = false }
44
tasks.withType(Jar).configureEach { enabled = false }
55
tasks.withType(Test).configureEach { enabled = false }

0 commit comments

Comments
 (0)