Skip to content

Commit aca9749

Browse files
committed
Add a temporary hack to turn off -Werror on runtime java jdk25. #14782
1 parent 5638a8d commit aca9749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/build-infra/src/main/groovy/lucene.java.javac.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ tasks.withType(JavaCompile).configureEach {
8181
// proc:none was added because of LOG4J2-1925 / JDK-8186647
8282
options.compilerArgs += ["-proc:none"]
8383

84-
if (failOnWarningsOption.get()) {
84+
if (failOnWarningsOption.get() && (rootProject.ext.runtimeJavaVersion < JavaVersion.VERSION_25)) {
8585
options.compilerArgs += "-Werror"
8686
}
8787
}

0 commit comments

Comments
 (0)