From a571026f79940274ea93ca3eadc02eb9e8eebb07 Mon Sep 17 00:00:00 2001 From: Appu Goundan Date: Fri, 25 Oct 2024 11:04:32 -0400 Subject: [PATCH] only run errorpone in java 17+ might be strange for devs working with java11, but our CI will catch it anyway Signed-off-by: Appu Goundan --- .../jvm/src/main/kotlin/build-logic.errorprone.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-logic/jvm/src/main/kotlin/build-logic.errorprone.gradle.kts b/build-logic/jvm/src/main/kotlin/build-logic.errorprone.gradle.kts index b8839691..717fb2dc 100644 --- a/build-logic/jvm/src/main/kotlin/build-logic.errorprone.gradle.kts +++ b/build-logic/jvm/src/main/kotlin/build-logic.errorprone.gradle.kts @@ -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") }