Skip to content

Commit 5c4fd50

Browse files
HannesWellceki
authored andcommitted
[LOGBACK-1736] Make OSGi S.L.M. requirement for Configurator optional
For LOGBACK-1729 (https://jira.qos.ch/browse/LOGBACK-1729) the OSGi Service Loader Mediator Manifest entries were enhanced to be able to load logback Configurator services provided by other OSGi bundles. Unintentionally this requirement was only specified with 'cardinality:=multiple' and without 'resolution:=optional', which means that at least one bundle providing a Configurator service is required (but more are possible). This adds the forgotten 'resolution:=optional' directive to also allow the logback-classic bundle to resolve if no Configurator service is available, which is a valid case and for what the code is prepared. Fixes https://jira.qos.ch/browse/LOGBACK-1736 Signed-off-by: Hannes Wellmann <[email protected]>
1 parent 24a0997 commit 5c4fd50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

logback-classic/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@
331331
</Import-Package>
332332
<!-- Needed to integrate ServiceLoader mechanism with OSGi -->
333333
<Require-Capability><![CDATA[
334-
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))",
334+
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
335335
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))",
336-
osgi.serviceloader;filter:="(osgi.serviceloader=ch.qos.logback.classic.spi.Configurator)";osgi.serviceloader="ch.qos.logback.classic.spi.Configurator";cardinality:=multiple
336+
osgi.serviceloader;filter:="(osgi.serviceloader=ch.qos.logback.classic.spi.Configurator)";osgi.serviceloader="ch.qos.logback.classic.spi.Configurator";resolution:=optional;cardinality:=multiple
337337
]]></Require-Capability>
338338
<Provide-Capability><![CDATA[
339339
osgi.service;objectClass:List<String>="jakarta.servlet.ServletContainerInitializer";effective:=active,

0 commit comments

Comments
 (0)