-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- <developers><developer><id> element added to silence a complaint from bnd about well formed entries - let bnd generate default manifest spec entries, as well as setting all other headers - added BND SPI annotations to add the necessary parts to make ServiceLoader work in OSGi (passively) fixes #242 Signed-off-by: Raymond Augé <[email protected]>
- Loading branch information
Showing
5 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,9 @@ | |
<jsr305.version>3.0.2</jsr305.version> | ||
<junit.version>5.7.0</junit.version> | ||
<assertj.version>3.17.2</assertj.version> | ||
<bnd.version>6.0.0</bnd.version> | ||
<osgi.annotation.version>8.0.0</osgi.annotation.version> | ||
<project.build.outputTimestamp>1</project.build.outputTimestamp> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<reactive-streams.version>1.0.3</reactive-streams.version> | ||
|
@@ -62,18 +65,22 @@ | |
|
||
<developers> | ||
<developer> | ||
<id>nebhale</id> | ||
<name>Ben Hale</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>mp911de</id> | ||
<name>Mark Paluch</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>mirromutth</id> | ||
<name>Mirro Mutth</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>gregturn</id> | ||
<name>Greg Turnquist</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
|
@@ -106,6 +113,46 @@ | |
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>biz.aQute.bnd</groupId> | ||
<artifactId>bnd-maven-plugin</artifactId> | ||
<version>${bnd.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>bnd-process</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<bnd><![CDATA[ | ||
# Vars are ignored from the output | ||
spec.version = ${version;===;${project.version}} | ||
Automatic-Module-Name: ${replacestring;${project.artifactId};-;.} | ||
# Don't import findbugs annotation packages since they are never runtime dependency | ||
Import-Package:\ | ||
!javax.annotation.*,\ | ||
* | ||
R2DBC-Specification-Version: ${project.version} | ||
# Automatically export all packages in the resulting jar at spec version | ||
-exportcontents: *;version=${spec.version} | ||
# Add default specification headers | ||
-namesection: io/r2dbc/spi*/;\ | ||
Specification-Title="${project.name}";\ | ||
Specification-Version="${spec.version}" | ||
# Ensure repeatable builds if desired | ||
-noextraheaders: true | ||
-snapshot: SNAPSHOT | ||
]]></bnd> | ||
<skipIfEmpty>true</skipIfEmpty> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
|
@@ -129,12 +176,7 @@ | |
<version>3.2.0</version> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | ||
</manifest> | ||
<manifestEntries> | ||
<R2DBC-Specification-Version>${project.version}</R2DBC-Specification-Version> | ||
</manifestEntries> | ||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters