You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/05/07 12:51:54 UTC

(camel) branch main updated: chore: upgrade okhttp to version 5.x

This is an automated email from the ASF dual-hosted git repository.

Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 041bd06ee2e8 chore: upgrade okhttp to version 5.x
041bd06ee2e8 is described below

commit 041bd06ee2e8ed864fb36a2b0ec8e2e7dedb8133
Author: Torsten Mielke <tm...@ibm.com>
AuthorDate: Thu May 7 13:51:06 2026 +0200

    chore: upgrade okhttp to version 5.x
    
    Upgrading dependency com.squareup.okhttp3:okhttp to latest 5.3.2 version
    (already defined in parent/pom.xml) as currently used version
    3.14.9 is 6 years old!
    
    This updates camel-jetty and camel-olingo2 to use com.squareup.okhttp3:okhttp-jvm:5.3.2.
    Component camel-huaweicloud-obs references okhttp3 as compile time dependency but it is
    not used there at all. So okhttp3 got removed as a dependency there.
    All unit tests of these components pass, with the exception of JettySessionSupportTest
    in camel-jetty. However this test fails for me on main branch as well and does not
    use okhttp classes in any way.
    
    The only component left to use com.squareup.okhttp3:okhttp:3.14.9 is camel-salesforce.
    A quick attempt to upgrade to version 5.3.2 here as well failed and breaks many unit
    tests. So this component will require a separate investigation.
    
    Made with help from AI tools.
---
 components/camel-huawei/camel-huaweicloud-obs/pom.xml    | 7 -------
 components/camel-jetty/pom.xml                           | 4 ++--
 components/camel-olingo2/camel-olingo2-component/pom.xml | 7 +++----
 3 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/components/camel-huawei/camel-huaweicloud-obs/pom.xml b/components/camel-huawei/camel-huaweicloud-obs/pom.xml
index 4327e3b78d59..4a4cd9a3ba63 100644
--- a/components/camel-huawei/camel-huaweicloud-obs/pom.xml
+++ b/components/camel-huawei/camel-huaweicloud-obs/pom.xml
@@ -58,13 +58,6 @@
         </exclusion>
       </exclusions>
     </dependency>
-
-    <dependency>
-      <groupId>com.squareup.okhttp3</groupId>
-      <artifactId>okhttp</artifactId>
-      <version>${squareup-okhttp-version}</version>
-    </dependency>
-
     <dependency>
       <groupId>com.google.code.gson</groupId>
       <artifactId>gson</artifactId>
diff --git a/components/camel-jetty/pom.xml b/components/camel-jetty/pom.xml
index 6a42cca6ae4f..2c9035d14e7a 100644
--- a/components/camel-jetty/pom.xml
+++ b/components/camel-jetty/pom.xml
@@ -160,8 +160,8 @@
         <!-- testing with ok http client -->
         <dependency>
             <groupId>com.squareup.okhttp3</groupId>
-            <artifactId>okhttp</artifactId>
-            <version>${squareup-okhttp-version}</version>
+            <artifactId>okhttp-jvm</artifactId>
+            <version>${squareup-okhttp5-version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/components/camel-olingo2/camel-olingo2-component/pom.xml b/components/camel-olingo2/camel-olingo2-component/pom.xml
index 2b0c40525f60..c7384921d7e1 100644
--- a/components/camel-olingo2/camel-olingo2-component/pom.xml
+++ b/components/camel-olingo2/camel-olingo2-component/pom.xml
@@ -88,14 +88,13 @@
         <dependency>
             <groupId>com.squareup.okhttp3</groupId>
             <artifactId>mockwebserver</artifactId>
-            <version>${squareup-okhttp-version}</version>
+            <version>${squareup-okhttp5-version}</version>
             <scope>test</scope>
         </dependency>
-        <!-- forcing okhttp v3.x related to https://issues.apache.org/jira/browse/CAMEL-16336 -->
         <dependency>
             <groupId>com.squareup.okhttp3</groupId>
-            <artifactId>okhttp</artifactId>
-            <version>${squareup-okhttp-version}</version>
+            <artifactId>okhttp-jvm</artifactId>
+            <version>${squareup-okhttp5-version}</version>
             <scope>test</scope>
         </dependency>