-
Notifications
You must be signed in to change notification settings - Fork 487
Updated osgi imports to not import the exports #513
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
Conversation
Updated hibernate and javassist to allow for wider osgi versions - i.e.: don't be opinionated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit concerned about manual handling of optional dependencies versions. Having different version numbers in project dependencies in POMs and in OSGi bundle descriptor seems to be dangerous to me. If we do not need new features/bug fixes/improvements of Hibernate or Javaassist, then we do not need to upgrade the dependencies and should keep them at the minimum required version.
@orange-buffalo ; for javassist, that would be OK, but for hibernate it would generate a version range of: 4.2,5, which would exclude latest. |
Indeed, default BND versioning scheme works this way. There is a configuration to override this (http://bnd.bndtools.org/chapters/170-versioning.html, section 10.8), but it will have effect for all imports, not sure if it can be specified for a single package. But I believe we still can make changes in a way that avoids double-maintenance of version numbers if instead of
we have
Of course, to apply this we should specify the minimum version of Hibernate dependency we need. PS. This is just a suggestion, I do not insist on making changes here. |
Did you mean, i.e.: we provide minimum and current version: As if we just did: Isnt that the same as now? |
I see two aspects here. First is that we have Hibernate dependency version defined in the project as Second thing is that for OSGi we basically need "unbound" version range, i.e. starting from the minimum required and with no right end. I found that this is supported by some providers (like here). Not sure what spec says about unbound range and if this semantic is supported by other vendors.
If not, than we should set the left end to our minimum required version, and the right end to some future major version (it is quite hard to say what will come with Hibernate 6 and 7, but for the time being we could assume they will not break proxy interface):
|
For time being, have commented out versions to be non-opinionated as theres no clean way to support this currently. will revisit. |
#512
CC @orange-buffalo