You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2026/09/30 02:57:46 UTC

(lucene) branch branch_10x updated: build: support java 27 (#16745)

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

rmuir pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_10x by this push:
     new 8e929c157e3 build: support java 27 (#16745)
8e929c157e3 is described below

commit 8e929c157e39b2dfe3658513d95ef10a16ec8acc
Author: Robert Muir <rm...@apache.org>
AuthorDate: Tue Sep 29 22:54:48 2026 -0400

    build: support java 27 (#16745)
    
    Currently java 27 gives the user an error message due to our custom
    check. Extend it to java 27, which is GA. It works with gradle, and with
    our build.
---
 .../main/java/org/apache/lucene/gradle/GradleWrapperDownloader.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/GradleWrapperDownloader.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/GradleWrapperDownloader.java
index 92d9617ce4e..1cae1b77d85 100644
--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/GradleWrapperDownloader.java
+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/GradleWrapperDownloader.java
@@ -75,8 +75,8 @@ public class GradleWrapperDownloader {
 
   public static void checkVersion() {
     int major = Runtime.version().feature();
-    if (major < 21 || major > 26) {
-      throw new IllegalStateException("java version must be 21..26, your version: " + major);
+    if (major < 21 || major > 27) {
+      throw new IllegalStateException("java version must be 21..27, your version: " + major);
     }
   }