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/04/29 20:03:06 UTC
(lucene) branch branch_10x updated: Bugfix: Make sure that it only generates a MR-JAR when the compilation version is greater than minimum java version
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 85960129132 Bugfix: Make sure that it only generates a MR-JAR when the compilation version is greater than minimum java version
85960129132 is described below
commit 859601291322808644855aa254b99026d675ff46
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Tue Apr 29 21:58:57 2025 +0200
Bugfix: Make sure that it only generates a MR-JAR when the compilation version is greater than minimum java version
---
gradle/java/core-mrjar.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradle/java/core-mrjar.gradle b/gradle/java/core-mrjar.gradle
index 89bfc2c6d8c..de0aaea4139 100644
--- a/gradle/java/core-mrjar.gradle
+++ b/gradle/java/core-mrjar.gradle
@@ -52,7 +52,7 @@ configure(project(":lucene:core")) {
mrjarJavaVersions.each { jdkVersion ->
// the sourceSet which corresponds to the minimum/base Java version
// will copy its output to root of JAR, all other sourceSets will go into MR-JAR folders:
- boolean isBaseVersion = (jdkVersion.toString() == rootProject.minJavaVersion.toString())
+ boolean isBaseVersion = (jdkVersion.toString() as int <= rootProject.minJavaVersion.toString() as int)
into(isBaseVersion ? '' : "META-INF/versions/${jdkVersion}") {
from sourceSets["main${jdkVersion}"].output
}