Skip to content

Commit 12a657d

Browse files
authored
feat: Add use of bnd plugin to gen OSGi meta-data as per issue #318 (#319)
1 parent 8a35e15 commit 12a657d

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

mutiny-zero-flow-adapters/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<packaging>jar</packaging>
1414
<description>Adapters from/to JDK Flow and Reactive Streams</description>
1515

16+
<properties>
17+
<bnd-bundle-name>io.smallrye.mutiny.zero.flow.adapters</bnd-bundle-name>
18+
</properties>
19+
1620
<dependencies>
1721
<dependency>
1822
<groupId>org.reactivestreams</groupId>
@@ -29,4 +33,41 @@
2933
</dependency>
3034
</dependencies>
3135

36+
<build>
37+
<plugins>
38+
<plugin>
39+
<groupId>biz.aQute.bnd</groupId>
40+
<artifactId>bnd-maven-plugin</artifactId>
41+
<version>${bnd-maven-plugin.version}</version>
42+
<executions>
43+
<execution>
44+
<id>bnd-process</id>
45+
<goals>
46+
<goal>bnd-process</goal>
47+
</goals>
48+
</execution>
49+
</executions>
50+
<configuration>
51+
<bnd><![CDATA[
52+
Bundle-Name: Bundle ${project.groupId} : ${project.artifactId}
53+
Bundle-SymbolicName: ${bnd-bundle-name}
54+
Export-Package: mutiny.zero.flow.*;-noimport:=true
55+
Bundle-Version: ${version}
56+
-noimportjava: true;
57+
-nouses: true;
58+
]]>
59+
</bnd>
60+
</configuration>
61+
</plugin>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-jar-plugin</artifactId>
65+
<configuration>
66+
<archive>
67+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
68+
</archive>
69+
</configuration>
70+
</plugin>
71+
</plugins>
72+
</build>
3273
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<revapi-reporter-text.version>0.15.1</revapi-reporter-text.version>
8080

8181
<maven.compiler.release>17</maven.compiler.release>
82+
<bnd-maven-plugin.version>7.2.1</bnd-maven-plugin.version>
8283
</properties>
8384

8485
<dependencyManagement>

0 commit comments

Comments
 (0)