Skip to content

Commit 14a635c

Browse files
authored
Move BND configuration to pom.xml (#3065)
This removes the BND configuration in `log4j-1.2-api/bnd.bnd` and moves it to the POM file. The resulting JPMS module has the same requirements as version `2.24.1`. ``` requires java.base requires java.desktop requires java.management transitive requires java.xml transitive requires javax.jms-api static requires org.apache.logging.log4j transitive requires org.apache.logging.log4j.core static ```
1 parent 837ad2a commit 14a635c

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

log4j-1.2-api/bnd.bnd

-27
This file was deleted.

log4j-1.2-api/pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343
com.sun.jdmk.comm;resolution:=optional,
4444
<!-- JMS is optional -->
4545
javax.jms;version="[1.1,3)";resolution:=optional,
46-
<!-- Log4j Core is optional -->
47-
org.apache.logging.log4j.core.*;resolution:=optional
4846
</bnd-extra-package-options>
47+
<bnd-extra-module-options>
48+
<!-- Log4j Core is optional -->
49+
org.apache.logging.log4j.core;static=true
50+
</bnd-extra-module-options>
4951
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
50-
<!-- we have an `bnd.bnd` file to override the parent's defaults -->
5152
</properties>
5253

5354
<dependencies>

0 commit comments

Comments
 (0)