-
Notifications
You must be signed in to change notification settings - Fork 72
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
OSGi versions of packages did not change since 1.1 #177
Comments
This is my first encounter with per-package versioning, so I'm not sure what to expect. But it is confusing to me. In my experience, clients (and tooling) usually import packages with version ranges (so usual import for API 1.2.1 would be From API user's point of view, it just looks inconsistent. For example, javadoc of |
@pdudits I agree it can be confusing, but the idea of semantic version has merit. And if the Java EE community would follow the same rules, then I think it would've avoided the problem you are seeing in #178. Because the CDI spec didn't make any breaking changes to consumers (only to implementors), it really should have called itself 1.3 instead of 2.0 (or at least updated the package versions in such a way). In MP Rest Client 1.2, we only made minor changes to the API packages (changes that break implementors, but not consumers), so OSGi bundles that were generated by tools like BND should continue to work just fine - unless you are implementing the Rest Client APIs. Here is a brief explanation of semantic versioning used in OSGi: Hope this helps - and thanks again for raising this issue - I've made it a note in my personal release process - and I'll look into the overall MicroProfile project release process to see if I can make a note to update OSGi versions there too. |
@andymc12 this is done right? |
@kenfinnigan yes - I updated it for master (1.3) and the 1.2.X-service branch. We should probably publish a 1.2.2 release that includes these changes. |
Do we need a 1.2.2 of 1.3 will be out shortly?
…Sent from my iPhone
On May 7, 2019, at 11:01, Andy McCright ***@***.***> wrote:
@kenfinnigan yes - I updated it for master (1.3) and the 1.2.X-service branch. We should probably publish a 1.2.2 release that includes these changes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@pdudits do you have an opinion on whether a 1.2.2 release is useful? We should be releasing 1.3 later this week - and that has the correct OSGi package versions. But I understand that some vendors may be slower to adopt the 1.3 release and may want this fix in the 1.2 stream. In that case, I would be fine with publishing a 1.2.2 release. |
@andymc12 we surely want to ship updated rest client in release coming up in next weeks. We might not have the capacity to add features of 1.3 in it. So yes, I think a maintenance release would be good. |
To prevent this from happening in the future, I have added the bnd versioning plugin. I have done for some projects already. I will get all projects updated soon. |
… packages Signed-off-by: Emily Jiang <[email protected]>
#177 use bnd versioning to automatically correctly version api packages
Since release 1.1, the exported version of main package is 1.1, and versions of subpackages is 1.0.1.
This clearly does not reflect the changes in the API since May 2018.
The per-package versioning was introduced in #81, but then the version of every package needs to be carefully reviewed before every release, which is unfortunately not happening.
The text was updated successfully, but these errors were encountered: