Skip to content

Commit f61de5d

Browse files
committed
Fix for r2dbc#242 - Inclusion of basic OSGI headers and optional ServiceLoader provider requirement.
Signed-off-by: RobWalker <[email protected]>
1 parent cf237fe commit f61de5d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

r2dbc-spi/pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@
7474
<archive>
7575
<manifestEntries>
7676
<Automatic-Module-Name>r2dbc.spi</Automatic-Module-Name>
77+
<!--
78+
Headers for use in an OSGi classloading framework
79+
Note: may need additional work for full OSGi ServiceLoader handling:
80+
https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html
81+
-->
82+
<Bundle-Category>bundle</Bundle-Category>
83+
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
84+
<Bundle-SymbolicName>${project.groupId}_${project.artifactId}</Bundle-SymbolicName>
85+
<Bundle-Name>${project.artifactId}</Bundle-Name>
86+
<Bundle-Version>${project.version}</Bundle-Version>
87+
<Export-Package>io.r2dbc.spi;version="${project.version}"</Export-Package>
88+
<Import-Package>javax.annotation.meta;resolution:=optional,javax.annotation</Import-Package>
89+
<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>
7790
</manifestEntries>
7891
</archive>
7992
</configuration>

0 commit comments

Comments
 (0)