Skip to content

Commit 67bd3a2

Browse files
committed
Merge pull request google#797 from seanbright/osgi-manifest-headers
Restore OSGi manifest headers
2 parents 29362de + 4eff1a8 commit 67bd3a2

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

gson/bnd.bnd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Bundle-SymbolicName: com.google.gson
2+
Bundle-Name: ${project.name}
3+
Bundle-Description: ${project.description}
4+
Bundle-Vendor: Google Gson Project
5+
Bundle-ContactAddress: ${project.parent.url}
6+
Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8
7+
8+
-removeheaders: Private-Package
9+
10+
-exportcontents:\
11+
com.google.gson,\
12+
com.google.gson.annotations,\
13+
com.google.gson.reflect,\
14+
com.google.gson.stream

gson/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@
3131
</links>
3232
</configuration>
3333
</plugin>
34+
<plugin>
35+
<groupId>biz.aQute.bnd</groupId>
36+
<artifactId>bnd-maven-plugin</artifactId>
37+
<version>3.1.0</version>
38+
<executions>
39+
<execution>
40+
<goals>
41+
<goal>bnd-process</goal>
42+
</goals>
43+
</execution>
44+
</executions>
45+
</plugin>
3446
</plugins>
3547
</build>
3648
</project>

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
<artifactId>maven-javadoc-plugin</artifactId>
7575
<version>2.10.3</version>
7676
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-jar-plugin</artifactId>
80+
<configuration>
81+
<useDefaultManifestFile>true</useDefaultManifestFile>
82+
</configuration>
83+
</plugin>
7784
</plugins>
7885
</pluginManagement>
7986
<plugins>

0 commit comments

Comments
 (0)