Specify okhttp dependency (#1875)

This is needed since Spring Boot no longer manages the version.  The version is managed in Spring Cloud Commons.  See https://github.com/spring-cloud/spring-cloud-commons/pull/1470. Fixes #1813
This commit is contained in:
Ryan Baxter
2025-02-14 12:25:06 -05:00
committed by GitHub
parent 4bfa556039
commit b7a177200e
2 changed files with 11 additions and 5 deletions

View File

@@ -49,6 +49,17 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-kubernetes-commons</artifactId>
</dependency>
<!-- Spring Boot removed its dependency management of okhttp in Spring Boot 3.4.0 -->
<!-- This resulted in a different version fo okhttp in Spring Cloud 2024.0.0 -->
<!-- Spring Cloud is now managing the okhttp dependency version in Spring Cloud Commons -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>

View File

@@ -67,10 +67,5 @@
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>