chore: upgrade okhttp3 in camel-salesforce-component#23073
Merged
Conversation
added 3 commits
May 7, 2026 13:51
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.
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-salesforce/camel-salesforce-component to use com.squareup.okhttp3:okhttp-jvm:5.3.2 and
com.squareup.okhttp3:mockwebserver3:5.2.
An update to unit test RawPayloadTest was needed for the tests to pass.
With this upgrade, no other Camel component or module depends on property ${squareup-okhttp-version}
as defined in parent/pom.xml. So removing this property entirely, relying only on ${squareup-okhttp5-version}.
All of Camel rebuilt successfully with the property removed from parent/pom.xml.
Made with help from AI tools.
davsclaus
approved these changes
May 7, 2026
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
✅ POM dependency changes: targeted tests included Changed properties: squareup-okhttp-version Modules affected by dependency changes (1)
Build reactor — dependencies compiled but only changed modules were tested (5 modules)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrading dependency
com.squareup.okhttp3:okhttpto latest5.3.2version (already defined inparent/pom.xml)as currently used version
3.14.9is 6 years old!This updates
camel-salesforce/camel-salesforce-componentto usecom.squareup.okhttp3:okhttp-jvm:5.3.2andcom.squareup.okhttp3:mockwebserver3:5.2.An update to unit test
RawPayloadTestwas needed for the tests to pass.With this upgrade, no other Camel component or module depends on property
${squareup-okhttp-version}as defined inparent/pom.xml. So removing this property entirely, relying only on${squareup-okhttp5-version}.All of Camel rebuilt successfully with the property removed from
parent/pom.xml.Made with help from AI tools.