-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Set correct bundle version of fragment host. #1050
Conversation
kenwenzel
commented
Sep 30, 2016
- Fixes [OSGi] Multibindings and AssistedInject JARs need version property for fragment host #1049
- Ensures that extensions are only applied to a specific version of com.google.inject
* Fixes google#1049 * Ensures that extensions are only applied to a specific version of com.google.inject
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
Hello. It has been many many years since this PR was opened. I have finally attempted to finally merge it, but the integration tests fail with I am unfortunately not familiar enough with the OSGi to resolve this. Do you have suggestions for how to fix this? (@mcculls , you may have an idea too.) For reference, this is the PR that is trying to submit and failing: #1701, and you can see an example failure from the CI tests @ https://github.com/google/guice/actions/runs/4758367659/jobs/8456337740. |
The bundle version needs to be normalized to 5.1.1.SNAPSHOT. This version must also match the exact Bundle-Version of com.google.inject |
Thanks @kenwenzel. Are there any variables I can use in the POM (or anything, really) that will get the normalized version or refer to the bundle-version used in the parent? AFAICT, the bundle-plugin will automatically normalize the |
Dear @sameb , Then we can simply use a built-in macro for version normalization: All macros can be found here: Can I help somehow? |
Help would be greatly appreciated. If you're willing to update this PR (or make another) with a version that works at head and normalizes snapshots, etc .. that would be awesome. Thank you for your help, and my sincere apologies again for the many years of earlier silence on this issue. |
Hi, since the The solution is to use a property syntax that Maven won't interpolate, but ie. use parentheses |
Perfect, thanks @mcculls ! |
Looks like |
Using the macro @kenwenzel suggested works for me locally:
(Maven will interpolate the project version before passing the header to |
… Much thanks to @kenwenzel and @mcculls for their help figuring out the right incantation for this. PiperOrigin-RevId: 525810926