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

Make the picocli jar OSGi friendly #734

Closed
raducotescu opened this issue Jun 18, 2019 · 8 comments
Closed

Make the picocli jar OSGi friendly #734

raducotescu opened this issue Jun 18, 2019 · 8 comments
Labels
theme: module An issue or change related to JPMS modules type: enhancement ✨
Milestone

Comments

@raducotescu
Copy link
Contributor

I would like to use the picocli in an OSGi environment for a module of the Apache Sling project - see [0]. Currently, I've embedded the source code, but that makes our Sonar checks fail. Would it be possible to provide an OSGi-friendly jar? The effort should be minimal IMO and would really help us out, without any other implications for other consumers.

[0] - apache/sling-org-apache-sling-committer-cli#4

@remkop
Copy link
Owner

remkop commented Jun 18, 2019

I’d be happy to help.
Can you clarify what concrete changes you need for the picocli jar to be an OSGi-friendly jar?

@raducotescu
Copy link
Contributor Author

We just need to add some headers to the jar's manifest file. This is easily achievable with the bnd-maven-plugin [1]. In Sling we work with the bnd.bnd file, since it makes OSGi instructions easier to define and maintain. Should I come up with a PR for you?

[1] - https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin

@remkop
Copy link
Owner

remkop commented Jun 18, 2019

Yes please, a PR would be great!

@remkop
Copy link
Owner

remkop commented Jun 18, 2019

Note that picocli uses Gradle (gradle-4.10.2) to build though. The pom.xml is for GitHub bookkeeping.

@remkop remkop added type: enhancement ✨ theme: module An issue or change related to JPMS modules labels Jun 18, 2019
@remkop remkop added this to the 4.0 milestone Jun 18, 2019
@remkop remkop closed this as completed in f7be991 Jun 18, 2019
@remkop
Copy link
Owner

remkop commented Jun 18, 2019

Merged into master. Please verify.
This will be included in the 4.0.0-beta-2 release later this week.
Many thanks for the PR!

@remkop
Copy link
Owner

remkop commented Jun 19, 2019

FYI, 4.0.0-beta-2 has been released. It may take a few hours for Maven mirrors to update.
Thanks again for the PR!

@remkop
Copy link
Owner

remkop commented Jun 20, 2019

@raducotescu Quick question: I notice that the Bundle-SymbolicName header is set to picocli. What are the conventions for the symbolic name? Should this be the "group name" of the artifact Maven coordinates (that is,info.picocli) instead? - Just wondering.

@raducotescu
Copy link
Contributor Author

raducotescu commented Jun 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: module An issue or change related to JPMS modules type: enhancement ✨
Projects
None yet
Development

No branches or pull requests

2 participants