Skip to content

Commit 18cf79a

Browse files
authored
Move bnd.bnd file configuration into 'bnd' element of bnd-maven-plugin (#2712)
1 parent 73b7781 commit 18cf79a

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

gson/bnd.bnd

-17
This file was deleted.

gson/pom.xml

+21
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,27 @@
131131
<goals>
132132
<goal>bnd-process</goal>
133133
</goals>
134+
<configuration>
135+
<bnd><![CDATA[
136+
Bundle-SymbolicName: com.google.gson
137+
Bundle-Name: ${project.name}
138+
Bundle-Description: ${project.description}
139+
Bundle-Vendor: Google Gson Project
140+
Bundle-ContactAddress: ${project.parent.url}
141+
142+
# Optional dependency for JDK's sun.misc.Unsafe
143+
# https://bnd.bndtools.org/chapters/920-faq.html#remove-unwanted-imports-
144+
Import-Package: sun.misc;resolution:=optional, *
145+
146+
-removeheaders: Private-Package
147+
148+
-exportcontents:\
149+
com.google.gson,\
150+
com.google.gson.annotations,\
151+
com.google.gson.reflect,\
152+
com.google.gson.stream
153+
]]></bnd>
154+
</configuration>
134155
</execution>
135156
</executions>
136157
</plugin>

0 commit comments

Comments
 (0)