Skip to content

Commit

Permalink
Remove export of obsolete/removed package 'org.slf4j.impl' in OSGi
Browse files Browse the repository at this point in the history
Since SLF4J 2 the connection between SLFJ4 and its providers is
established via the Service Loader mechanism, which is enabled in OSGi
runtimes using a Service Loader Mediator.

The package 'org.slf4j.impl' no longer exists in the logback-classic
bundle and therefore can not and need no longer be exported.

Fixes https://jira.qos.ch/browse/LOGBACK-1730

Signed-off-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
  • Loading branch information
HannesWell authored and ceki committed Apr 7, 2023
1 parent 1418273 commit 055aea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logback-classic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
</executions>
<configuration>
<instructions>
<Export-Package>ch.qos.logback.classic*, org.slf4j.impl;version=${slf4j.version}</Export-Package>
<Export-Package>ch.qos.logback.classic*</Export-Package>
<!-- LB-CLASSIC It is necessary to specify the rolling
file packages as classes are created via IOC (xml
config files). They won't be found by Bnd's analysis
Expand Down

0 comments on commit 055aea0

Please sign in to comment.