davsclaus opened a new pull request, #30889: URL: https://github.com/apache/camel/pull/30889
CAMEL-27579: camel-box - Upgrade to Box Java SDK 5.21.0 JIRA: https://issues.apache.org/jira/browse/CAMEL-27579 (related: CAMEL-22718, the port to SDK 10.x, stays open) ## Problem `camel-box` uses Box Java SDK 4.16.4, the last release of the 4.x line (2025-10-03). Box now ships 5.x (transitional, 5.21.0 on 2026-11-18) and 10.x (generated SDK only). ## Change - `box-java-sdk-version` 4.16.4 -> 5.21.0 in `parent/pom.xml`. - Upgrade guide 4.24 entry: larger jar, new transitive dependencies, deprecated `BoxAPIConnection`. Why 5.x is a drop-in for `camel-box`: - The Box release notes and the v4 to v5 migration guide say there are no breaking changes: 5.x ships the legacy `com.box.sdk` package unchanged, plus the new generated `com.box.sdkgen` package in the same jar. Java baseline is still Java 8 (class files are version 52). - I compared the two jars: the same 311 `com.box.sdk` classes, the same public API (`javap -public`), and the same bytecode (`javap -c -p`) except the SDK version string in the User-Agent. Every 5.x changelog entry is for `boxsdkgen`. - The only change to `com.box.sdk` is that `BoxAPIConnection` and its constructors are now `@Deprecated` (since 5.0.0), pointing to `com.box.sdkgen.client.BoxClient`. `camel-box` now compiles with deprecation warnings for `BoxAPIConnection`. Those warnings are left as they are: they go away with the port to `com.box.sdkgen` (CAMEL-22718). - Dependencies: okhttp stays at 4.12.0 (unchanged), jose4j 0.9.4 -> 0.9.6, Bouncy Castle 1.82 -> 1.85 (not managed by Camel, as before). The jar grows from about 0.6 MB to about 6.3 MB. - 5.x also declares Jackson 2 (`jackson-core`, `jackson-databind`, `jackson-annotations`) and `commons-codec`, which only the new `com.box.sdkgen` package uses. `camel-box` excludes them, so it brings no Jackson 2: no class in `com.box.sdk` refers to `com.fasterxml` or `org.apache.commons.codec` (checked in the 5.21.0 jar). - Nothing generated changes: the API component generation, component JSON, catalog and endpoint DSL are the same. ## Tests - `mvn -o package` in `components/camel-box`: the unit tests pass (11 tests: `BoxCollaborationsManagerTest`, `BoxEventLogsManagerPagingTest`, `BoxEventsConsumerTest`, `BoxSharedConnectionTest`). - The `*IT` tests need a Box account and were **not** run. - No new test: this is a dependency upgrade with no behaviour change. ## Upgrade notes Entry "camel-box - Box Java SDK 5" in `camel-4x-upgrade-guide-4_24.adoc`. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
