8000 Generate OSGi metadata · modelcontextprotocol/java-sdk@67e67f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67e67f6

Browse files
committed
Generate OSGi metadata
1 parent 352ec2d commit 67e67f6

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

mcp/pom.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,49 @@
2020
<developerConnection>git@github.com/modelcontextprotocol/java-sdk.git</developerConnection>
2121
</scm>
2222

23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>biz.aQute.bnd</groupId>
27+
<artifactId>bnd-maven-plugin</artifactId>
28+
<version>${bnd-maven-plugin.version}</version>
29+
<executions>
30+
<execution>
31+
<id>bnd-process</id>
32+
<goals>
33+
<goal>bnd-process</goal>
34+
</goals>
35+
<configuration>
36+
<bnd><![CDATA[
37+
Bundle-Name: Bundle ${project.groupId} : ${project.artifactId}
38+
version: ${versionmask;===;${version_cleanup;${mvnVersion}}}
39+
Bundle-SymbolicName: ${project.groupId}.${project.artifactId}
40+
Bundle-Version: ${project.version}
41+
Automatic-Module-Name: ${project.groupId}.${project.artifactId}
42+
Import-Package: jakarta.*;resolution:=optional, \
43+
*;
44+
Export-Package: io.modelcontextprotocol.*;version="${project.version}";-noimport:=true
45+
-noimportjava: true;
46+
-nouses: true;
47+
-removeheaders: Private-Package
48+
]]></bnd>
49+
</configuration>
50+
</execution>
51+
</executions>
52+
</plugin>
53+
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<configuration>
58+
<archive>
59+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
60+
</archive>
61+
</configuration>
62+
</plugin>
63+
</plugins>
64+
</build>
65+
2366
<dependencies>
2467

2568
<dependency>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<tomcat.version>11.0.2</tomcat.version>
9292
<jakarta.servlet.version>6.1.0</jakarta.servlet.version>
9393
<awaitility.version>4.2.0</awaitility.version>
94+
<bnd-maven-plugin.version>7.1.0</bnd-maven-plugin.version>
9495
</properties>
9596

9697
<modules>

0 commit comments

Comments
 (0)
0