From d75b869d2115b8f2eb18a1df4bc2b55f0552934a Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 9 Feb 2024 15:13:37 -0500 Subject: [PATCH] java 17 -> java 21 --- .../main/java/org/apache/lucene/gradle/WrapperDownloader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java b/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java index 5123291bb83..d933a519a08 100644 --- a/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java +++ b/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java @@ -61,8 +61,8 @@ public class WrapperDownloader { public static void checkVersion() { int major = Runtime.getRuntime().version().feature(); - if (major < 17 || major > 21) { - throw new IllegalStateException("java version must be between 17 and 21, your version: " + major); + if (major != 21) { + throw new IllegalStateException("java version must be 21, your version: " + major); } }