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

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

commit ee7a5147a71edb023a5794cc70d5cf7d70290328
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Nov 24 09:32:59 2023 +0100

    Remove JSR305 for OSGi/JPMS descriptors
    
    The `jsr305` dependency appeared in commit:
    
    8f6ad47fbdbee1a6829859df19efeeafedf930ea
    
    but is not required at runtime.
---
 log4j-api/pom.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml
index ace7342371..2ea9e66998 100644
--- a/log4j-api/pom.xml
+++ b/log4j-api/pom.xml
@@ -35,10 +35,14 @@
       -->
     <bnd-module-name>org.apache.logging.log4j</bnd-module-name>
     <bnd-extra-package-options>
+      <!-- No JSR 305 at runtime -->
+      !javax.annotation.*,
       <!-- Optional dependencies -->
       org.jctools.*;resolution:=optional
     </bnd-extra-package-options>
     <bnd-extra-module-options>
+      <!-- No JSR 305 at runtime -->
+      jsr305;ignore=true,
       <!-- Used in StringBuilders through reflection -->
       java.sql;static=true
     </bnd-extra-module-options>

Reply via email to