grgrzybek commented on issue #311: [CURATOR-429] Make Curator 4.x compatible with Zookeeper 3.4.x in OSGi too URL: https://github.com/apache/curator/pull/311#issuecomment-492081621 @shayshim OSGi is generally very confusing runtime/technology to enforce the most sane and obvious rules that should always be used. In other words, if you assume _semantic versioning_ (which tells you that between 1.0.0 and 2.0.0 you have breaking changes and between 1.0.0 and 1.1.0 you have some changes and between 1.0.0 and 1.0.1 you have only bug fixes), then you should not be able to blindly upgrade some dependencies if they have some breaking or medium API changes. OSGi (here, using maven-bundle-plugin and bndlib) gives you strict rules - it can analyze your POM and decide about the safe version _range_ you can use. By default, if Curator 4.1.1 has dependency on Zookeeper 3.5.4-beta, the generated/assumed/default _Import range_ is `[3.5,4.0)`, which again - is reasonable. maven-bundle-plugin doesn't know that Curator is also compatible with Zookeeper 3.4.x - in this case you have to be explicit and use `[3.4,4.0)` range instead of `*` which generates `[3.5,4.0)`. I hope this clears confusion. Also @oscerd provided good explanation.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services