Skip to content
Permalink
Browse files

Fix OSGi metadata generation to work on JavaSE < 9 (#1603)

* Explicitly specify `Require-Capability: osgi.ee` to require 1.5+

Specifying disables bnd's auto-generated value which is determined from
the minimum versions of the .class files, including `module-info.class`

* Drop JavaSE-1.5 since that boat sailed a long time ago

* Drop unused org.apache.felix:maven-bundle-plugin plugin
  • Loading branch information...
briandealwis authored and inder123 committed Nov 4, 2019
1 parent 47b28d9 commit 521fab2dd5e829b51cff6813d0b5405d4ab2d1ee
Showing with 2 additions and 5 deletions.
  1. +2 −1 gson/bnd.bnd
  2. +0 −4 gson/pom.xml
@@ -3,7 +3,8 @@ Bundle-Name: ${project.name}
Bundle-Description: ${project.description}
Bundle-Vendor: Google Gson Project
Bundle-ContactAddress: ${project.parent.url}
Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8
Bundle-RequiredExecutionEnvironment: JavaSE-1.6, JavaSE-1.7, JavaSE-1.8
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))"

-removeheaders: Private-Package

@@ -52,10 +52,6 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>

0 comments on commit 521fab2

Please sign in to comment.
You can’t perform that action at this time.