Skip to content

Commit

Permalink
Manage the version of okhttp in commons (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjbaxter authored Feb 14, 2025
1 parent c8cade1 commit 1239566
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spring-cloud-commons-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<name>spring-cloud-commons-dependencies</name>
<description>Spring Cloud Commons Dependencies</description>
<properties>
<okhttp.version>4.12.0</okhttp.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -53,6 +54,20 @@
<artifactId>spring-cloud-test-support</artifactId>
<version>${project.version}</version>
</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 -->
<!-- We will now manage the version in Spring Cloud Commons to maintain backward compatibility -->
<!-- This can be removed in the next major -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<version>${okhttp.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
Expand Down
10 changes: 10 additions & 0 deletions spring-cloud-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@
<artifactId>httpclient5</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down

0 comments on commit 1239566

Please sign in to comment.