From 40fd191e3164ddf475cbcceec87c5896c1efbb40 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Wed, 21 Dec 2022 00:07:48 +0100 Subject: [PATCH] SLFJ4-576: Export client packages of slf4j-api in version 1 Fixes https://jira.qos.ch/browse/SLF4J-576 This allows to use the slf4j-api version 2 artifact as drop-in replacement for slf4j-api version 1 in OSGi environments as well. slf4j-api can now be wired to bundles that require packages of slf4j-api in version 1 or 2. Signed-off-by: Hannes Wellmann --- pom.xml | 3 +-- slf4j-api/pom.xml | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3b1bcdc6a..90687c388 100755 --- a/pom.xml +++ b/pom.xml @@ -35,8 +35,7 @@ 2022-12-12T19:19:39Z - 1.7.36 - 2.0.0-alpha7 + 1.7.36 8 ${jdk.version} diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml index 37a8dee97..bf0df74d4 100755 --- a/slf4j-api/pom.xml +++ b/slf4j-api/pom.xml @@ -59,6 +59,13 @@ org.slf4j.spi;version="${range;[===,+);${version;===;${maven_version;${project.version}}}}" + + <_exportcontents> =1.0.0)(!(version>=2.0.0)))", osgi.serviceloader;filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)";osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider"