diff --git a/build.gradle b/build.gradle index 8573099f..35588e9b 100644 --- a/build.gradle +++ b/build.gradle @@ -154,7 +154,10 @@ dependencies { implementation("org.apache.logging.log4j:log4j-jul:${log4jVersion}") implementation("org.opensearch.client:opensearch-rest-high-level-client:${opensearchVersion}") api("org.opensearch.client:opensearch-rest-client:${opensearchVersion}") - api("org.opensearch.client:opensearch-java:${opensearchVersion}") + api("org.opensearch.client:opensearch-java:${opensearchVersion}") { + exclude group : 'org.apache.httpcomponents.core5' + exclude group : 'org.apache.httpcomponents.client5' + } implementation("org.opensearch.plugin:transport-netty4-client:${opensearchVersion}") implementation("io.netty:netty-all:${nettyVersion}") implementation("jakarta.inject:jakarta.inject-api:${jakartaInjectVersion}")