Skip to content

Commit a807ca1

Browse files
committed
Fix issue #34:
* change the `osgi.versionpolicy` to generate version range import from a given major.minor.micro to the next major. By the way this is the default bnd lib behavior. * remove extract version property in the export statement as it is just the default bnd lib behavior and therefore does not add value except make it explicit * remove the `osgi.import` properties has the default bnd lib behavior provide exactly the same and also ensure that the import statement will be always in sync with the dependency usage.
1 parent caaf843 commit a807ca1

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

pom.xml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,8 @@ Joda (http://joda-time.sourceforge.net/) data types.
2929
<packageVersion.package>${project.groupId}.joda</packageVersion.package>
3030

3131
<!-- Configuration properties for the OSGi maven-bundle-plugin -->
32-
<osgi.import>com.fasterxml.jackson.annotation
33-
,com.fasterxml.jackson.core
34-
,com.fasterxml.jackson.core.util
35-
,com.fasterxml.jackson.databind
36-
,com.fasterxml.jackson.databind.deser.std
37-
,com.fasterxml.jackson.databind.introspect
38-
,com.fasterxml.jackson.databind.jsontype
39-
,com.fasterxml.jackson.databind.module
40-
,com.fasterxml.jackson.databind.node
41-
,com.fasterxml.jackson.databind.ser
42-
,com.fasterxml.jackson.databind.ser.std
43-
,org.joda.time
44-
,org.joda.time.format
45-
</osgi.import>
46-
<osgi.export>${project.groupId}.joda.*;version=${project.version}
47-
</osgi.export>
32+
<osgi.export>${project.groupId}.joda.*</osgi.export>
33+
<osgi.versionpolicy>${range;[===,+);${@}}</osgi.versionpolicy>
4834
</properties>
4935

5036
<dependencies>

0 commit comments

Comments
 (0)