Skip to content

Commit

Permalink
improve compatibility with OSGi mediator
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Jul 12, 2023
1 parent 998bef6 commit 82f3f1a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bundles/jakarta.json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,22 @@
org.glassfish.hk2.osgiresourcelocator;resolution:=optional,
*
</Import-Package>
<Require-Capability><![CDATA[
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
osgi.serviceloader;
filter:="(osgi.serviceloader=jakarta.json.spi.JsonProvider";
osgi.serviceloader="jakarta.json.spi.JsonProvider";
cardinality:=multiple;resolution:=optional
]]>
</Require-Capability>
<Provide-Capability><![CDATA[
osgi.serviceloader;
osgi.serviceloader="jakarta.json.spi.JsonProvider",
]]>
</Provide-Capability>
</instructions>
</configuration>
</execution>
Expand Down
10 changes: 10 additions & 0 deletions impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@
<HK2-Bundle-Name>${project.groupId}:${project.artifactId}</HK2-Bundle-Name>
<Implementation-Build-Id>${project.version} - ${buildNumber}</Implementation-Build-Id>
<Export-Package>org.eclipse.parsson.api</Export-Package>
<Require-Capability><![CDATA[
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
]]>
</Require-Capability>
<Provide-Capability><![CDATA[
osgi.serviceloader;
osgi.serviceloader="jakarta.json.spi.JsonProvider",
]]>
</Provide-Capability>
</instructions>
</configuration>
</execution>
Expand Down

0 comments on commit 82f3f1a

Please sign in to comment.