Skip to content

Commit 2503e83

Browse files
committed
Fix MR-JAR build on Java 25+ (regression?)
1 parent 02f5dc3 commit 2503e83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gradle/java/core-mrjar.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ configure(project(":lucene:core")) {
4040
// for compilation we patch the incubator packages into java.base, this has no effect on resulting class files:
4141
"--add-exports", "java.base/jdk.incubator.vector=ALL-UNNAMED",
4242
]
43+
// hack because -Xlint:-options does not work for all options (regression in JDK 25+):
44+
options.compilerArgs.remove("-Werror")
4345

4446
def argsProvider = objects.newInstance(CompilerArgsProvider)
4547
argsProvider.apiJarFile.set(apijar)

0 commit comments

Comments
 (0)