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

davsclaus 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 062873582449 CAMEL-27579: camel-box - Upgrade to Box Java SDK 5.21.0 
(#30889)
062873582449 is described below

commit 0628735824492f088f0d19538951d1f9ae81b323
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 26 20:18:03 2026 +0100

    CAMEL-27579: camel-box - Upgrade to Box Java SDK 5.21.0 (#30889)
    
    Box Java SDK 5 is the transitional line between the legacy 4.x SDK and
    the generated 10.x SDK. Its com.box.sdk package, which camel-box uses,
    is the same as in 4.16.4 (the bytecode differs only in the SDK version
    string), so this is a drop-in upgrade. Version 5 adds the com.box.sdkgen
    package to the same jar and deprecates BoxAPIConnection. Only
    com.box.sdkgen uses Jackson 2 and commons-codec, so camel-box excludes
    them and brings no Jackson 2. The port to com.box.sdkgen stays with
    CAMEL-22718.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 components/camel-box/camel-box-api/pom.xml            | 19 +++++++++++++++++++
 components/camel-box/camel-box-component/pom.xml      | 19 +++++++++++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc       | 14 ++++++++++++++
 parent/pom.xml                                        |  2 +-
 4 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/components/camel-box/camel-box-api/pom.xml 
b/components/camel-box/camel-box-api/pom.xml
index d8505ec29bbb..6363b7c470e7 100644
--- a/components/camel-box/camel-box-api/pom.xml
+++ b/components/camel-box/camel-box-api/pom.xml
@@ -43,6 +43,25 @@
             <groupId>com.box</groupId>
             <artifactId>box-java-sdk</artifactId>
             <version>${box-java-sdk-version}</version>
+            <exclusions>
+                <!-- only the new com.box.sdkgen API uses Jackson 2 and 
commons-codec, and camel-box uses com.box.sdk -->
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-annotations</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-core</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-databind</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>commons-codec</groupId>
+                    <artifactId>commons-codec</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
 
         <dependency>
diff --git a/components/camel-box/camel-box-component/pom.xml 
b/components/camel-box/camel-box-component/pom.xml
index b529a64c5231..386b8cbb9cdd 100644
--- a/components/camel-box/camel-box-component/pom.xml
+++ b/components/camel-box/camel-box-component/pom.xml
@@ -57,6 +57,25 @@
             <groupId>com.box</groupId>
             <artifactId>box-java-sdk</artifactId>
             <version>${box-java-sdk-version}</version>
+            <exclusions>
+                <!-- only the new com.box.sdkgen API uses Jackson 2 and 
commons-codec, and camel-box uses com.box.sdk -->
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-annotations</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-core</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.fasterxml.jackson.core</groupId>
+                    <artifactId>jackson-databind</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>commons-codec</groupId>
+                    <artifactId>commons-codec</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
 
         <dependency>
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 84b08e84569b..529c70b439f7 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -187,6 +187,20 @@ The `HybridSignatureComponents` and 
`HybridEncapsulationComponents` record const
 (`classicalBytes`, `pqcBytes`) to 5 arguments (`classicalBytes`, `pqcBytes`, 
`classicalAlgorithmId`, `pqcAlgorithmId`,
 `version`). Code that constructs these records directly must be updated.
 
+=== camel-box - Box Java SDK 5
+
+The `camel-box` component is upgraded from Box Java SDK 4.16.4 to 5.21.0. The 
`com.box.sdk` package, which
+`camel-box` uses, is the same in version 5, so the component options and the 
calls it makes to Box are unchanged.
+
+Version 5 adds the generated `com.box.sdkgen` package to the same 
`box-java-sdk` jar, which is about 6 MB now (it was
+about 0.6 MB). That package needs Jackson 2 and `commons-codec`, which 
`camel-box` excludes, as it only uses
+`com.box.sdk`. Application code that uses `com.box.sdkgen` directly must add 
`jackson-databind` (2.x) and
+`commons-codec` itself.
+
+Box has deprecated `com.box.sdk.BoxAPIConnection` and its constructors in 
favour of `com.box.sdkgen.client.BoxClient`.
+Application code that creates a `BoxAPIConnection` itself, for example for the 
`boxConnection` option of the component,
+compiles with deprecation warnings, but works as before.
+
 === camel-observability-services - promoted to Stable
 
 The `camel-observability-services` component has been promoted from _Preview_ 
to _Stable_ support level.
diff --git a/parent/pom.xml b/parent/pom.xml
index 4af8bfc3a1b4..e0f9a9f7df02 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -103,7 +103,7 @@
         
<azure-storage-blob-changefeed-version>12.0.0-beta.40</azure-storage-blob-changefeed-version>
         <beanio-version>3.2.1</beanio-version>
         <bouncycastle-version>1.87</bouncycastle-version>
-        <box-java-sdk-version>4.16.4</box-java-sdk-version>
+        <box-java-sdk-version>5.21.0</box-java-sdk-version>
         <braintree-gateway-version>3.55.1</braintree-gateway-version>
         
<build-helper-maven-plugin-version>3.7.0</build-helper-maven-plugin-version>
         <bytebuddy-version>1.18.16</bytebuddy-version>

Reply via email to