From 8e183df1cb5400c7f795aabe4b03e9d986409d4f Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 29 Sep 2022 13:10:32 -0700 Subject: [PATCH] Declare an 'implementation' configuration exclusion on 'org.apache.httpcomponents:httpclient' transitive dependency included by Apache Geode. Apache Geode's core Management functionality and lib (org.apache.geode:gedoe-management) requires and includes the org.apache.httpcomponents:httclient:4.5.13 dependency which is in conflict with core Spring Framework's use of the Apache HttpComponents HttpClient5 (org.apache.httpcomponents.client5:httpclient5) dependency in the spring-web module and HTTP (client) API. --- .../spring-geode-autoconfigure.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-geode-project/spring-geode-autoconfigure/spring-geode-autoconfigure.gradle b/spring-geode-project/spring-geode-autoconfigure/spring-geode-autoconfigure.gradle index a303e227..e0606e23 100644 --- a/spring-geode-project/spring-geode-autoconfigure/spring-geode-autoconfigure.gradle +++ b/spring-geode-project/spring-geode-autoconfigure/spring-geode-autoconfigure.gradle @@ -6,6 +6,10 @@ apply plugin: 'io.spring.convention.spring-module' description = "Spring Boot Auto-Configuration for Apache Geode" +configurations.implementation { + exclude group: "org.apache.httpcomponents", module: "httpclient" +} + dependencies { api project(":spring-geode") @@ -23,6 +27,7 @@ dependencies { // See additional testImplementation dependencies declared in the testDependencies project extension // defined in the DependencySetPlugin. testImplementation "jakarta.servlet:jakarta.servlet-api" + testImplementation "org.apache.httpcomponents.client5:httpclient5" testImplementation "org.springframework.boot:spring-boot-starter-test" testImplementation "org.springframework.boot:spring-boot-starter-web"