diff --git a/.codegen.json b/.codegen.json index f8ff6f001..9f838bb12 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "dec2966", "specHash": "fa34496", "version": "0.1.0" } +{ "engineHash": "dec2966", "specHash": "fa34496", "version": "5.0.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index c979e146b..9f79190ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,32 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [5.0.0](https://github.com/box/box-java-sdk/compare/v4.16.3...v5.0.0) (2025-10-23) + +Introducing a new major version of Box Java SDK `v5` that includes two packages — the manually maintained `com.box.sdk` package and the generated `com.box.sdkgen` package. The coexisting packages provide easier access to the latest Box API features and support gradual migration to the standalone generated namespace. + +There are no breaking changes between `v4` and `v5` of Box Java SDK. For more information about migrating to v5 visit [v4 to v5 migration guide](https://github.com/box/box-java-sdk/blob/combined-sdk/migration-guides/from-v4-to-v5.md) + +### What's New in `v5` + +With this SDK version, alongside the existing `com.box.sdk` package, we’re introducing a new `com.box.sdkgen` package, which gives you access to: + +- **Full API Support** — Complete coverage of the Box API ecosystem, giving you access to all the latest features and functionalities to build feature-rich applications. + +- **Rapid API Updates** — Our new auto-generation approach enables Box API additions within days, ensuring you can leverage the most up-to-date features without delay. + +- **Embedded Documentation** — All objects and parameters are documented directly in the SDK source code, keeping essential information in one place. + +- **Enhanced Convenience Methods** — New methods for authentication, chunk uploads, automatic retries, retry strategy, and more. + +### Important Notes + +This version allows you to gradually migrate your codebase to the `com.box.sdkgen` package. The key differences between the packages are documented in the [package migration guide](https://github.com/box/box-java-sdk/blob/combined-sdk/migration-guides/from-com-box-sdk-to-com-box-sdkgen.md). + +Ultimately, we recommend to migrate to `v10` which includes only the generated `com.box.sdkgen` package. To migrate from `v5` to `v10` follow this [migration guide](https://github.com/box/box-java-sdk/blob/combined-sdk/migration-guides/from-v5-to-v10.md). + +For more information, see the [SDK versioning strategy document](https://developer.box.com/guides/tooling/sdks/sdk-versioning/). Follow developer changelog for future updates. + ### [4.16.4](https://github.com/box/box-java-sdk/compare/v4.16.3...v4.16.4) (2025-10-03) diff --git a/build.gradle b/build.gradle index 960ca5039..df4ab195d 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ sourceCompatibility = 1.8 group = "com.box" archivesBaseName = "box-java-sdk" -version = "4.16.4" +version = "5.0.0" java { withJavadocJar() diff --git a/src/main/java/com/box/sdk/BoxAPIConnection.java b/src/main/java/com/box/sdk/BoxAPIConnection.java index 74fb07f57..f2d49208c 100644 --- a/src/main/java/com/box/sdk/BoxAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxAPIConnection.java @@ -91,7 +91,7 @@ public class BoxAPIConnection { private static final String BOX_NOTIFICATIONS_HEADER = "Box-Notifications"; private static final String JAVA_VERSION = System.getProperty("java.version"); - private static final String SDK_VERSION = "4.16.4"; + private static final String SDK_VERSION = "5.0.0"; /** * The amount of buffer time, in milliseconds, to use when determining if an access token should diff --git a/src/main/java/com/box/sdkgen/networking/version/Version.java b/src/main/java/com/box/sdkgen/networking/version/Version.java index f31faab37..247a51835 100644 --- a/src/main/java/com/box/sdkgen/networking/version/Version.java +++ b/src/main/java/com/box/sdkgen/networking/version/Version.java @@ -3,6 +3,6 @@ public class Version { public static String getVersion() { - return "0.1.0"; + return "5.0.0"; } }