-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix ok http client explicit dependency #849
Conversation
My reasoning are based on The changes are small, but it will take a significant amount of words explaining it, so please bear with me. We need to first read carefully this part of maven documentation (the second example with Project
Let's look now at one of our examples here. So in Now suppose I create such a simple example. You would expect that the version of
We should definitely get rid of managing that dependency ourselves, at least imo. The downside is that if k8s-client ever drops okhttp client, some of our tests will fail, because the only place where we use okhttp is in tests or examples:
But that is a minor thing to worry about, because if the tests fail (and kubernetes-client) removed that dependency, we can declare it explicitly in the those projects (not via bom). On the other hand, there is another solution : we explicitly manage the version of okhttp that we need in the projects above, without managing them in bom. That is, for example in :
instead of:
what we currently have. @ryanjbaxter ready to review, but more importantly ready to expand on what your thoughts are here. thank you. |
@ryanjbaxter leaving a note here also - as this is ready for review too. It should address this |
Thanks for the detailed explanation! So the reason why everything (the tests and examples) still compiles is because of the transitive dependency from |
sort of. currently, even if At the same time, if we drop it, it will still work (as this PR proves), because of the transitive dependency. The problem is that we override that transitive dependency version. To try and simplify this : So, if we drop it like in this PR : we rely on the transitive one. |
Right I agree. I think its fine to drop the explicit dependency in the BOM and rely on |
in that case, this is ready to be merged and the defect that this triggered, also. thank you for looking into this. |
No description provided.