Skip to content
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

Exclude Apache HttpClient5 transitive dependencies on Apache HttpCore5 #569

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

reta
Copy link
Collaborator

@reta reta commented Jul 7, 2023

Description

For some reasons, Gradle still tries to bring transitive dependencies on Apache HttpCore5 (from Apache HttpClient5 ) nonetheless we explicitly provide those.

image

Excluding those to get:

image

Thanks a lot to @cwperks for highlighting that

Issues Resolved

Related to opensearch-project/opensearch-sdk-java#857

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@@ -151,7 +151,9 @@ dependencies {
compileOnly("org.opensearch.client", "opensearch-rest-client", opensearchVersion)
testImplementation("org.opensearch.test", "framework", opensearchVersion)

api("org.apache.httpcomponents.client5:httpclient5:5.2.1")
api("org.apache.httpcomponents.client5:httpclient5:5.2.1") {
exclude(group = "org.apache.httpcomponents.core5")
Copy link
Member

@owaiskazi19 owaiskazi19 Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reta if we are excluding the dependency on core5 here. Do we still need to exclude it on the SDK repo?

Copy link
Collaborator Author

@reta reta Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@owaiskazi19 yes, because for SDK, there are indeed 2 clients (rest & this one), both importing Client5 / Core5, the 3.0.0 release line (opensearch-java) has no runtime dependencies on OpenSearch core. When SDK picks just one client - issue will be gone.

@dblock dblock merged commit ccbe10a into opensearch-project:main Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants