-
Notifications
You must be signed in to change notification settings - Fork 58
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
[BUG] Build fails due to transitive dependencies #857
Comments
This should be fixed by: opensearch-project/opensearch-java#554 |
Yeah, and we'll break again next time one updates before the other. |
I'm still getting this issue even after the merge of the change in
I think the most pertinent line is
5.2.1 is the latest on maven central: https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 |
I had to downgrade |
<insert my recurring request for an OpenSearch version catalog here> |
Hehe .... I hear you, may be needs prioritization ,,, |
My background in dependency management is with Maven which seems a bit simpler but easier to resolve situations like this (e.g., order matters). Gradle has a lot of hidden switches and priorities that make these harder to diagnose! I do think for known transitive dependencies that will have recurring conflicts on version updates, a better solution for SDK is to exclude the transitives from one option (e.g., the client) and thus always use the version in the other (e.g, OpenSearch). Forcing our own version would work but for transitives seems to break some sort of encapsulation concept. |
What is the bug?
Following merge of opensearch-project/OpenSearch#8434, transitive dependencies between OpenSearch and
opensearch-java
conflict for Apache Http dependencies.How can one reproduce the bug?
Build latest SDK against latest Opensearch and OpenSearch Client for Java
What is the expected behavior?
Code compiles
Do you have any additional context?
We need to either exclude the transitive dependency or force our own version.
The text was updated successfully, but these errors were encountered: