Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

build: WrapperDownloader: stop blocking JDK 24+ (#4957)

David Smiley30be63ee74bd
diff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java
index 4a0f494d38a..1c0b6b0b7c8 100644
--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java
+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java
@@ -54,9 +54,8 @@ public class WrapperDownloader {
public static void checkVersion() {
int major = Runtime.version().feature();
- if (major < 21 || major > 23) {
- throw new IllegalStateException(
- "java version must be between 21 and 23, your version: " + major);
+ if (major < 21) {
+ throw new IllegalStateException("java version must be 21 or higher, your version: " + major);
}
}