You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/11/15 16:04:13 UTC

[lucene] branch branch_9x updated: LUCENE-10234: Add automatic module name to JAR manifests. (#440)

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

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


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 9d0eb88  LUCENE-10234: Add automatic module name to JAR manifests. (#440)
9d0eb88 is described below

commit 9d0eb88d2cd5339d4988417b5e46789a23d60d6f
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Mon Nov 15 17:02:40 2021 +0100

    LUCENE-10234: Add automatic module name to JAR manifests. (#440)
---
 gradle/java/jar-manifest.gradle | 4 +++-
 lucene/CHANGES.txt              | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gradle/java/jar-manifest.gradle b/gradle/java/jar-manifest.gradle
index bb45405..2840b8b 100644
--- a/gradle/java/jar-manifest.gradle
+++ b/gradle/java/jar-manifest.gradle
@@ -64,7 +64,9 @@ subprojects {
               "X-Compile-Target-JDK"  : "${-> project.targetCompatibility}",
 
               "X-Build-JDK"           : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
-              "X-Build-OS"            : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
+              "X-Build-OS"            : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
+
+              "Automatic-Module-Name" : "${-> project.path.replaceFirst(":", "").replace(':', '.').replace("-", "_")}"
             ])
           }
 
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 921d22a..bf2f255 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -202,6 +202,8 @@ API Changes
 Improvements
 ---------------------
 
+* LUCENE-10234: Added Automatic-Module-Name to all JARs. (Dawid Weiss)
+
 * LUCENE-10182: TestRamUsageEstimator used RamUsageTester.sizeOf throughout, making some of the
   tests trivial. Now, it compares results from RamUsageEstimator with those from RamUsageTester.
   To prevent this error in the future, RamUsageTester.sizeOf was renamed to ramUsed.