Skip to content

Commit

Permalink
minor tweak to osgi requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <[email protected]>
  • Loading branch information
lukasj committed Dec 23, 2022
1 parent 9395370 commit 5aea8ee
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.1</version>
<version>5.1.8</version>
<configuration>
<instructions>
<_noextraheaders>true</_noextraheaders>
Expand Down Expand Up @@ -353,6 +353,7 @@
<addDefaultEntries>false</addDefaultEntries>
</manifest>
</archive>
<niceManifest>true</niceManifest>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Specification-Title>${spec.title}</Specification-Title>
Expand All @@ -369,13 +370,15 @@
<!-- optional to allow usage with hk2 resource locator as a fallback -->
<Require-Capability><![CDATA[
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
(version>=1.0.0)(!(version>=2.0.0)))",
osgi.serviceloader;
filter:="(osgi.serviceloader=jakarta.mail.util.StreamProvider)";
(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.Provider)";
osgi.serviceloader="jakarta.mail.Provider";
cardinality:=multiple;resolution:=optional,
osgi.serviceloader;
filter:="(osgi.serviceloader=jakarta.mail.Provider)";
cardinality:=multiple;resolution:=optional]]>
osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.util.StreamProvider)";
osgi.serviceloader="jakarta.mail.util.StreamProvider";
cardinality:=multiple;resolution:=optional,
osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
]]>
</Require-Capability>
</instructions>
</configuration>
Expand Down

0 comments on commit 5aea8ee

Please sign in to comment.