Skip to content

Commit d72cbb1

Browse files
HannesWellceki
authored andcommitted
Ensure proper version ranges of re-imported OSGi packages
Ensure that the imported packages, which are also exported by a logback bundle have a suitable version range. Signed-off-by: Hannes Wellmann <[email protected]>
1 parent 055aea0 commit d72cbb1

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

logback-access/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
Bnd's analysis of java code.
146146
-->
147147
<Import-Package>
148+
ch.qos.logback.access*;version="${range;[==,+);${maven_version;${project.version}}}",
148149
ch.qos.logback.core.rolling,
149150
ch.qos.logback.core.rolling.helper,
150151
org.apache.catalina.*;version="${tomcat.version}";resolution:=optional,

logback-classic/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@
320320
config files). They won't be found by Bnd's analysis
321321
of java code. -->
322322
<Import-Package>
323+
ch.qos.logback.classic*;version="${range;[==,+);${maven_version;${project.version}}}",
323324
sun.reflect;resolution:=optional,
324325
javax.*;resolution:=optional,
325326
org.xml.*;resolution:=optional,

logback-core/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@
140140
</executions>
141141
<configuration>
142142
<instructions>
143-
<Export-Package>ch.qos.logback.core.*</Export-Package>
143+
<Export-Package>ch.qos.logback.core*</Export-Package>
144144
<Import-Package>
145+
ch.qos.logback.core*;version="${range;[==,+);${maven_version;${project.version}}}",
145146
javax.*;resolution:=optional,
146147
org.xml.*;resolution:=optional,
147148
org.fusesource.jansi;resolution:=optional,

0 commit comments

Comments
 (0)