Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

merged 3 commits into from Nov 4, 2019


Copy link

briandealwis commented Oct 31, 2019

Fixes #1601 #1602

  • explicitly specifies Require-Capability: for 1.6 or greater to disable bnd's autogeneration which is deceived by the module-info.class file
  • drop the JavaSE 1.5 reference since it hasn't been true for years (#790)
  • remove the unused org.apache.felix:maven-bundle-plugin plugin reference

Here are the differences in the resulting manifests:

--- gson-manifest-2.8.6	2019-10-31 12:24:51.000000000 -0400
+++ gson-manifest-2.8.7-SNAPSHOT	2019-10-31 11:49:39.000000000 -0400
@@ -1,23 +1,22 @@
 Manifest-Version: 1.0
 Archiver-Version: Plexus Archiver
-Created-By: 11.0.4 (Oracle Corporation)
-Built-By: inder
+Created-By: 11.0.4 (AdoptOpenJDK)
+Built-By: bsd
 Build-Jdk: 11.0.4
-Bnd-LastModified: 1570215293550
+Bnd-LastModified: 1572539070059
 Bundle-Description: Gson JSON library
 Bundle-ManifestVersion: 2
 Bundle-Name: Gson
-Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6, JavaSE-1.7, J
- avaSE-1.8
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6, JavaSE-1.7, JavaSE-1.8
 Bundle-Vendor: Google Gson Project
-Bundle-Version: 2.8.6
- .6",;version="2.8.6",;vers
- ion="2.8.6"
+ .7",;version="2.8.7",;vers
+ ion="2.8.7"
 Tool: Bnd-
Specifying disables bnd's auto-generated value which is determined from
the minimum versions of the .class files, including `module-info.class`
@googlebot googlebot added the cla: yes label Oct 31, 2019
Copy link

elharo left a comment

Test failure might be flaky:

[FATAL] Non-resolvable parent POM for Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to google-maven-central ( PKIX path building failed: unable to find valid certification path to requested target and 'parent.relativePath' points at wrong local POM @, /home/travis/build/google/gson/pom.xml, line 6, column 11


This comment has been minimized.

Copy link
Contributor Author

briandealwis commented Nov 2, 2019

Oh! I didn’t receive an email from Travis so I assumed it had passed :-(


This comment has been minimized.

Copy link

elharo commented Nov 2, 2019

@inder123 inder123 merged commit 521fab2 into google:master Nov 4, 2019
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
cla/google All necessary CLAs are signed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.