Conversation
|
As stated by @Graeme-Miller in #317, the reason for the version bump is that another downstream project has a dependency on https://github.com/fabric8io/kubernetes-client which requires the later version. |
|
@sjcorbett observed in #317 that io.swagger pulls in 2.4.5 of dataformat-jackson-dataformat-yaml etc. @neykov said: Even in karaf, when using brooklyn-tosca-karaf-init, we'll get the same mix of class versions: jackson-datatype-joda-2.4.5.jar along with the jackson-annotations bundle version 2.7.5. I'm not sure how safe that version mix is. But I'm also not sure how safe it is to upgrade The options seem to be:
And we could also optionally:
Option (3) sounds horrible. Option (1) passes the pain onto downstream projects. Even if using Karaf, if that downstream project was to cause jackson-core 2.7.5 bundle to be included in Karaf, then swagger would immediately pick it up instead (because it depends on import version I'd be willing to risk option (2) and merge this as-is, given we've tested it. Also swagger have declared jackson dependency as I hate figuring out the right dependency versions! Investigating the dependencies, Whereas Looking at a downstream karaf that also bundles the But using the karaf client, after doing
The bundle This means that we'll be using a mix of class versions: jackson-datatype-joda-2.4.5.jar along with the jackson-annotations bundle version 2.7.5. According to But then in camp server, it just brings in: Why does it show different transient dependencies for the two uses of brooklyn-utils-rest-swagger?! The utils/rest-swagger/pom.xml has: And the camp/camp-server/pom.xml has: In parent/pom.xml, the Looking in http://search.maven.org/#artifactdetails%7Cio.swagger%7Cswagger-core%7C1.5.6%7Cpom and http://search.maven.org/#artifactdetails%7Cio.swagger%7Cswagger-project%7C1.5.6%7Cpom, it definitely depends on It also has some surprising use of |
befcb04 to
de125b7
Compare
|
We have decided to proceed with updating the dependency. Lastly Swagger has been forbidden from pulling in any jackson versions |
|
I have tested this with vanilla/karaf brooklyn and karaf AMP. |
|
LGTM; merging. |
This is successor to this PR.
After the rest client was moved to brooklyn-client in this PR two new PRs had to be created, one for brooklyn-server and one for brooklyn-client.
Please merge this PR at the same time.
This PR updates jackson to 2.7.5.