Skip to content

Commit

Permalink
Move bnd.bnd file configuration into 'bnd' element of bnd-maven-plugin (
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell authored Jul 7, 2024
1 parent 73b7781 commit 18cf79a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
17 changes: 0 additions & 17 deletions gson/bnd.bnd

This file was deleted.

21 changes: 21 additions & 0 deletions gson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Bundle-SymbolicName: com.google.gson
Bundle-Name: ${project.name}
Bundle-Description: ${project.description}
Bundle-Vendor: Google Gson Project
Bundle-ContactAddress: ${project.parent.url}
# Optional dependency for JDK's sun.misc.Unsafe
# https://bnd.bndtools.org/chapters/920-faq.html#remove-unwanted-imports-
Import-Package: sun.misc;resolution:=optional, *
-removeheaders: Private-Package
-exportcontents:\
com.google.gson,\
com.google.gson.annotations,\
com.google.gson.reflect,\
com.google.gson.stream
]]></bnd>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 18cf79a

Please sign in to comment.