You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2025/06/15 09:55:41 UTC

(lucene) branch branch_10x updated: Fix MR-JAR build on Java 25+ (regression?)

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

uschindler 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 2503e832c17 Fix MR-JAR build on Java 25+ (regression?)
2503e832c17 is described below

commit 2503e832c17f6744dc33fd837f78888e9f0e07d4
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sun Jun 15 11:55:26 2025 +0200

    Fix MR-JAR build on Java 25+ (regression?)
---
 gradle/java/core-mrjar.gradle | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gradle/java/core-mrjar.gradle b/gradle/java/core-mrjar.gradle
index de0aaea4139..2b1a9e9ce40 100644
--- a/gradle/java/core-mrjar.gradle
+++ b/gradle/java/core-mrjar.gradle
@@ -40,6 +40,8 @@ configure(project(":lucene:core")) {
           // for compilation we patch the incubator packages into java.base, this has no effect on resulting class files:
           "--add-exports", "java.base/jdk.incubator.vector=ALL-UNNAMED",
         ]
+        // hack because -Xlint:-options does not work for all options (regression in JDK 25+):
+        options.compilerArgs.remove("-Werror")
 
         def argsProvider = objects.newInstance(CompilerArgsProvider)
         argsProvider.apiJarFile.set(apijar)