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

Replace OSGi plugin with biz.aQute.bnd. #14

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

Capstan
Copy link

@Capstan Capstan commented Sep 5, 2019

Fixes #13.

@Capstan
Copy link
Author

Capstan commented Sep 5, 2019

Knowing little about OSGi, and seeing little configuration for it in the Gradle files, I'd like someone else to take a look at this before merging.

@huggsboson
Copy link
Member

Do we know if we even need the osgi plugin anymore? What fails if we remove it?

@huggsboson
Copy link
Member

I scanned the build.gradle it doesn't look like we use the osgiManifest function introduced by that plugin, so I'd say we just remove it.

@Capstan
Copy link
Author

Capstan commented Oct 30, 2019

I know so little about OSGi. This was somewhat spurred by requests to remove Guava due in issue #3 because it drastically increases the size of their JAX-RS web app, and java-json-tools/json-schema-core/pull/40 where they were having issues in the OSGi environment due to segregated classloaders. I presume people are using it this way, but we don't currently have any e2e testing for it.

/cc @soberich @borcsokj in case they have feedback on what / how it's used in OSGi.

@Capstan
Copy link
Author

Capstan commented Oct 30, 2019

Also, according to https://docs.gradle.org/5.6.3/userguide/osgi_plugin.html, the OSGi plugin does affect the build without being otherwise referenced, by changing the manifest object, and adding a osgiClasses task.

https://github.com/bndtools/bnd/blob/4.2.0.REL/biz.aQute.bnd.gradle/README.md has some more details about how that plugin differs, but it looks like it similarly instruments the builds.

This isn't currently a priority for me to develop expertise in to make tests for, so I am relying on user feedback or contributions.

@huggsboson
Copy link
Member

Thanks for the research. Sounds good to me.

@Capstan Capstan merged commit 8bee295 into java-json-tools:master Nov 26, 2019
@Capstan Capstan deleted the osgi branch November 26, 2019 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated OSGi plugin
3 participants