Skip to content

Commit

Permalink
Fix for #242 - Inclusion of basic OSGI headers and optional ServiceLo…
Browse files Browse the repository at this point in the history
…ader provider requirement.
  • Loading branch information
ascertrobw committed Sep 9, 2021
1 parent cf237fe commit 2378370
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions r2dbc-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@
<archive>
<manifestEntries>
<Automatic-Module-Name>r2dbc.spi</Automatic-Module-Name>
<!--
Headers for use in an OSGi classloading framework
Note: may need additional work for full OSGi ServiceLoader handling:
https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html
-->
<Bundle-Category>bundle</Bundle-Category>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-SymbolicName>${project.groupId}_${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>io.r2dbc.spi;version="${project.version}"</Export-Package>
<Import-Package>javax.annotation.meta;resolution:=optional,javax.annotation</Import-Package>
<Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.8))", osgi.extender;resolution:=optional;filter:="(osgi.extender=osgi.serviceloader.processor)",osgi.serviceloader;resolution:=optional;filter:="(osgi.serviceloader=io.r2dbc.spi.ConnectionFactoryProvider)";cardinality:=multiple</Require-Capability>
</manifestEntries>
</archive>
</configuration>
Expand Down

0 comments on commit 2378370

Please sign in to comment.