From b363bb31ed08d3ad9761ccdca5e51bb2327c3287 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Wed, 21 Dec 2022 00:07:48 +0100 Subject: [PATCH] SLF4J-579: 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 | 5 ++--- slf4j-api/pom.xml | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 3b1bcdc6a..cd3fde39f 100755 --- a/pom.xml +++ b/pom.xml @@ -34,9 +34,8 @@ - 2022-12-12T19:19:39Z - 1.7.36 - 2.0.0-alpha7 + 2022-12-12T19:19:39Z + 1.7.36 8 ${jdk.version} diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml index 37a8dee97..e137f1e25 100755 --- a/slf4j-api/pom.xml +++ b/slf4j-api/pom.xml @@ -59,6 +59,11 @@ 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"