77732a3
From c2fd092f97e4ec6ee700f134bc1b52b62b8630a2 Mon Sep 17 00:00:00 2001
77732a3
From: Mat Booth <mat.booth@redhat.com>
77732a3
Date: Thu, 27 Aug 2020 10:27:01 +0100
77732a3
Subject: [PATCH 1/4] Update to latest version of bnd-maven-plugin
77732a3
77732a3
This version has a couple of advantages:
77732a3
77732a3
1) It is aware of module-info.class files, which means we don't
77732a3
need to manually override the "Require-Capability" header.
77732a3
77732a3
2) External packages used by reflection are now detected, i.e.
77732a3
the "sun.misc" package is now added to the "Import-Package"
77732a3
header. This is manually given optional resolution since it
77732a3
is obviously not present on all JVMs.
77732a3
77732a3
3) It also introduces some new useful OSGi headers:
77732a3
 - Bundle-DocURL (overriden with correct URL for manual)
77732a3
 - Bundle-License
77732a3
 - Bundle-SCM
77732a3
77732a3
This change also removes unnecessary mention of the felix
77732a3
bundle-plugin in the pluginManagement section of the parent pom.
77732a3
77732a3
Signed-off-by: Mat Booth <mat.booth@redhat.com>
77732a3
---
77732a3
 gson/bnd.bnd | 2 ++
77732a3
 gson/pom.xml | 2 +-
77732a3
 pom.xml      | 6 ------
77732a3
 3 files changed, 3 insertions(+), 7 deletions(-)
77732a3
77732a3
diff --git a/gson/bnd.bnd b/gson/bnd.bnd
77732a3
index c98fcfd..7706d8a 100644
77732a3
--- a/gson/bnd.bnd
77732a3
+++ b/gson/bnd.bnd
77732a3
@@ -3,7 +3,9 @@ Bundle-Name: ${project.name}
77732a3
 Bundle-Description: ${project.description}
77732a3
 Bundle-Vendor: Google Gson Project
77732a3
 Bundle-ContactAddress: ${project.parent.url}
77732a3
+Bundle-DocURL: ${project.parent.url}/blob/master/UserGuide.md
77732a3
 Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8
77732a3
+Import-Package: sun.misc;resolution:=optional,*
77732a3
 
77732a3
 -removeheaders: Private-Package
77732a3
 
77732a3
diff --git a/gson/pom.xml b/gson/pom.xml
77732a3
index ffe41ac..909a91a 100644
77732a3
--- a/gson/pom.xml
77732a3
+++ b/gson/pom.xml
77732a3
@@ -34,7 +34,7 @@
77732a3
       <plugin>
77732a3
         <groupId>biz.aQute.bnd</groupId>
77732a3
         <artifactId>bnd-maven-plugin</artifactId>
77732a3
-        <version>4.0.0</version>
77732a3
+        <version>5.1.2</version>
77732a3
         <executions>
77732a3
           <execution>
77732a3
             <goals>
77732a3
diff --git a/pom.xml b/pom.xml
77732a3
index 4774e70..8716014 100644
77732a3
--- a/pom.xml
77732a3
+++ b/pom.xml
77732a3
@@ -103,12 +103,6 @@
77732a3
           <groupId>org.apache.maven.plugins</groupId>
77732a3
           <artifactId>maven-jar-plugin</artifactId>
77732a3
         </plugin>
77732a3
-        <plugin>
77732a3
-          <groupId>org.apache.felix</groupId>
77732a3
-          <artifactId>maven-bundle-plugin</artifactId>
77732a3
-          <version>3.3.0</version>
77732a3
-          <inherited>true</inherited>
77732a3
-        </plugin>
77732a3
       </plugins>
77732a3
     </pluginManagement>
77732a3
     <plugins>
77732a3
-- 
77732a3
2.26.2
77732a3