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

vy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-parent.git


The following commit(s) were added to refs/heads/main by this push:
     new aed4772  Fix BND module name detection for multi-release JARs (#32)
aed4772 is described below

commit aed47721951b21a5870afd1cbd489f05b1324b33
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Mon Oct 2 10:42:13 2023 +0200

    Fix BND module name detection for multi-release JARs (#32)
    
    Co-authored-by: Volkan Yazıcı <[email protected]>
---
 pom.xml                                                 | 5 ++++-
 src/changelog/.10.x.x/fix_bnd_required_module_names.xml | 8 ++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 38d399f..bfb6fd5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -658,9 +658,12 @@
                 # Prevents an execution error in multi-release jars:
                 -fixupmessages: "Classes found in the wrong 
directory";restrict:=error;is:=warning
 
-                # OSGI modules do not make sense in JPMS
+                # 1. OSGI modules do not make sense in JPMS
+                # 2. BND has a problem detecting the name of multi-release 
JPMS modules
                 -jpms-module-info-options: 
org.osgi.core;static=true;transitive=false,\
                   org.osgi.framework;static=true;transitive=false,\
+                  org.apache.logging.log4j;substitute="log4j-api",\
+                  org.apache.logging.log4j.core;substitute="log4j-core",\
                   $[bnd-extra-module-options]
 
                 # Import all packages by default:
diff --git a/src/changelog/.10.x.x/fix_bnd_required_module_names.xml 
b/src/changelog/.10.x.x/fix_bnd_required_module_names.xml
new file mode 100644
index 0000000..58999dd
--- /dev/null
+++ b/src/changelog/.10.x.x/fix_bnd_required_module_names.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns="http://logging.apache.org/log4j/changelog";
+       xsi:schemaLocation="http://logging.apache.org/log4j/changelog 
https://logging.apache.org/log4j/changelog-0.1.1.xsd";
+       type="fixed">
+  <author id="github:ppkarwasz"/>
+  <description format="asciidoc">Fix BND module name detection on 
multi-release JARs</description>
+</entry>

Reply via email to