Skip to content

Commit

Permalink
enhance manifest with capabilities
Browse files Browse the repository at this point in the history
provide for SLF4JServiceProvider (with name attribute
require for registrar

Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
  • Loading branch information
stbischof authored and ceki committed Nov 14, 2022
1 parent e540299 commit 6324105
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
7 changes: 4 additions & 3 deletions slf4j-api/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Export-Package: org.slf4j;version=${parsedVersion.osgiVersion},
org.slf4j.helpers;version=${parsedVersion.osgiVersion},
org.slf4j.event;version=${parsedVersion.osgiVersion}
Import-Package: org.slf4j.spi;version=${parsedVersion.osgiVersion}
Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.service
loader.processor)",osgi.serviceloader;filter:="(osgi.serviceloader=or
g.slf4j.spi.SLF4JServiceProvider)"
Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.servi
celoader.processor)(version>=1.0.0)(!(version>=2.0.0)))",osgi.service
loader;filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvide
r)";osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider"
8 changes: 6 additions & 2 deletions slf4j-jdk14/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ Import-Package: org.slf4j;version=${parsedVersion.osgiVersion},
org.slf4j.spi;version=${parsedVersion.osgiVersion},
org.slf4j.helpers;version=${parsedVersion.osgiVersion},
org.slf4j.event;version=${parsedVersion.osgiVersion}
Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.serviceloader.registrar)"
Provide-Capability: osgi.serviceloader;osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider
Provide-Capability: osgi.service;objectClass:List<String>="org.slf4j.s
pi.SLF4JServiceProvider";type=jul;effective:=active,osgi.serviceloade
r;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register:="
org.slf4j.jul.JULServiceProvider";type=jul
Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.servi
celoader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"
6 changes: 6 additions & 0 deletions slf4j-nop/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ Import-Package: org.slf4j;version=${parsedVersion.osgiVersion},
org.slf4j.spi;version=${parsedVersion.osgiVersion},
org.slf4j.helpers;version=${parsedVersion.osgiVersion},
org.slf4j.event;version=${parsedVersion.osgiVersion}
Provide-Capability: osgi.service;objectClass:List<String>="org.slf4j.s
pi.SLF4JServiceProvider";type=nop;effective:=active,osgi.serviceloade
r;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register:="
org.slf4j.nop.NOPServiceProvider";type=nop
Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.servi
celoader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"
6 changes: 6 additions & 0 deletions slf4j-reload4j/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ Import-Package: org.slf4j;version=${parsedVersion.osgiVersion},
org.slf4j.helpers;version=${parsedVersion.osgiVersion},
org.slf4j.event;version=${parsedVersion.osgiVersion},
org.apache.log4j
Provide-Capability: osgi.service;objectClass:List<String>="org.slf4j.s
pi.SLF4JServiceProvider";type=reload4j;effective:=active,osgi.service
loader;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";regist
er:="org.slf4j.reload4j.Reload4jServiceProvider";type=reload4j
Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.servi
celoader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"
6 changes: 6 additions & 0 deletions slf4j-simple/src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ Import-Package: org.slf4j;version=${parsedVersion.osgiVersion},
org.slf4j.spi;version=${parsedVersion.osgiVersion},
org.slf4j.helpers;version=${parsedVersion.osgiVersion},
org.slf4j.event;version=${parsedVersion.osgiVersion}
Provide-Capability: osgi.service;objectClass:List<String>="org.slf4j.s
pi.SLF4JServiceProvider";type=simple;effective:=active,osgi.servicelo
ader;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register
:="org.slf4j.simple.SimpleServiceProvider";type=simple
Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.servi
celoader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"

0 comments on commit 6324105

Please sign in to comment.