This is an automated email from the ASF dual-hosted git repository. dsmiley pushed a commit to branch branch_10x in repository https://gitbox.apache.org/repos/asf/solr.git
commit 726e7b2ca93ab9fa702acc2022d73de9605f1cd9 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); } }
