From 171679baa87e13cfb8ca471242da6fd0d3acbe53 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Fri, 9 Dec 2022 13:42:01 -0500 Subject: [PATCH] SLF4J-574: Add full OSGi headers, especially "uses" clauses Fixes: https://jira.qos.ch/browse/SLF4J-574 This uses the BND tool, via org.apache.felix to generate the MANIFEST.MF to be fully compliant with OSGi. Compared to using just the maven-jar-plugin to create the MANIFEST.MF the uses clauses are added to the Export-Package Signed-off-by: Jonah Graham --- pom.xml | 35 ++++++++++++++++++++++++++--------- slf4j-api/pom.xml | 14 ++++++++++++++ 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 0f45ad965..47eab055f 100755 --- a/pom.xml +++ b/pom.xml @@ -228,14 +228,6 @@ - - ${parsedVersion.osgiVersion} - ${project.description} - ${maven.compiler.source} - ${maven.compiler.target} - ${project.version} - true - ${project.build.outputDirectory}/META-INF/MANIFEST.MF true @@ -243,7 +235,32 @@ - + + + org.apache.felix + maven-bundle-plugin + + + bundle-manifest + process-classes + + manifest + + + true + + ${parsedVersion.osgiVersion} + ${project.description} + ${maven.compiler.source} + ${maven.compiler.target} + ${project.version} + true + + + + + + org.apache.maven.plugins maven-surefire-plugin diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml index 21103da67..aa830838c 100755 --- a/slf4j-api/pom.xml +++ b/slf4j-api/pom.xml @@ -52,6 +52,20 @@ + + + org.apache.felix + maven-bundle-plugin + + + bundle-manifest + process-classes + + manifest + + + +