This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_10_1
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_10_1 by this push:
     new a8f22d2c31c build: WrapperDownloader: stop blocking JDK 24+ (#4957)
a8f22d2c31c is described below

commit a8f22d2c31ce3b2f73cca5d3ca2ab2120dbb4d79
Author: David Smiley <[email protected]>
AuthorDate: Thu Oct 1 20:19:11 2026 -0400

    build: WrapperDownloader: stop blocking JDK 24+ (#4957)
    
    The downloader should just download the Gradle Wrapper without enforcing 
the maximum supported Java version, as it doesn't truly know what's supported!
    
    (cherry picked from commit 30be63ee74bd58fe52be4270c085451760795949)
---
 .../src/main/java/org/apache/lucene/gradle/WrapperDownloader.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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);
     }
   }
 

Reply via email to