Skip to content

Commit 3d29753

Browse files
chore: release 4.0.0 (#1145)
1 parent 2656698 commit 3d29753

File tree

4 files changed

+53
-30
lines changed

4 files changed

+53
-30
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
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.
44

5+
## [4.0.0](https://github.com/box/box-java-sdk/compare/v3.8.2...v4.0.0) (2023-01-17)
6+
7+
8+
The most important change this release includes is the replacement of the HTTP library from a native one to
9+
[OkHttp](https://square.github.io/okhttp/) which allows SDK to
10+
- Support the HTTP2 version of the HTTP protocol.
11+
- Support proxies that do not use only basic authentication method. For details on creating custom proxy authenticators and an example of
12+
[NTLM proxy authentication](https://github.com/box/box-java-sdk/blob/kb/ok-http/doc/configuration.md#custom-proxy-authenticator).
13+
14+
### Breaking Changes
15+
* `BatchAPIRequest` – is no longer supported by the SDK
16+
* `BoxAPIConnection#DEFAULT_MAX_ATTEMPTS` is replaced with `BoxAPIConnection#DEFAULT_MAX_RETRIES`
17+
* `BoxRedirectResponse` – was removed and will not be replaced
18+
* `BoxEvent.Type` is replaced with `EventType`
19+
* Removing deprecated methods from `BoxFile`, `BoxFileVersionRetention`, `BoxFolder`, `BoxGroup`, `BoxGroupMembership`,`BoxItem`, `BoxRetentionPolicy`, `BoxTask`, `BoxUser`, `BoxWebLink`, `EventLog`, `Metadata` and `MetadataTemplate`.
20+
21+
Migration details can be found [here](doc/upgrades/3.x.x%20to%204.x.x.md).
22+
23+
### New Features and Enhancements:
24+
25+
* Using `OkHttp` in Java SDK ([#1083](https://github.com/box/box-java-sdk/issues/1083)) ([2656698](https://github.com/box/box-java-sdk/commit/265669897100dd8f1757fc2c5f25665da42c2889))
26+
527
### [3.8.2](https://github.com/box/box-java-sdk/compare/v3.8.1...v3.8.2) (2023-01-04)
628

729

README.md

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ The Box Java SDK for interacting with the
99
[Box Content API](https://developers.box.com/docs/).
1010

1111
## Latest Release
12-
Latest release can be found [here](https://github.com/box/box-java-sdk/tree/v3.8.2).
12+
Latest release can be found [here](https://github.com/box/box-java-sdk/tree/v4.0.0).
1313

1414
## Upgrades
15-
You can read about how to migrate to the new version [here](https://github.com/box/box-java-sdk/tree/v3.8.0/doc/upgrades).
15+
You can read about how to migrate to the new version [here](https://github.com/box/box-java-sdk/tree/v4.0.0).
1616

1717
## Versions
1818
We use a modified version of [Semantic Versioning](https://semver.org/) for all changes. See [version strategy](VERSIONS.md) for details which is effective from 30 July 2022.
@@ -27,7 +27,8 @@ A current release is on the leading edge of our SDK development, and is intended
2727

2828
| Version | Supported Environments | State | First Release | EOL/Terminated |
2929
|---------|---------------------------------------------------------|-----------|---------------|----------------|
30-
| 3 | Java 8 and up | Supported | 17 Jan 2022 | TBD |
30+
| 4 | Java 8 and up | Supported | 17 Jan 2023 | TBD |
31+
| 3 | Java 8 and up | EOL | 17 Jan 2022 | 17 Jan 2023 |
3132
| 2 | | EOL | 07 Jan 2016 | 17 Jan 2022 |
3233
| 1 | | EOL | 15 Apr 2015 | 07 Jan 2016 |
3334

@@ -220,31 +221,31 @@ You can find guides and tutorials in the `doc` directory.
220221

221222
* [BUILD ON BOX PLATFORM](https://developer.box.com/guides/getting-started/)
222223
* [Javadocs](http://box.github.io/box-java-sdk/javadoc/com/box/sdk/package-summary.html)
223-
* [Overview](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/overview.md)
224-
* [Configuration](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/configuration.md)
225-
* [Logging](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/logging.md)
226-
* [Authentication](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/authentication.md)
227-
* [Files](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/files.md)
228-
* [Folders](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/folders.md)
229-
* [Comments](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/comments.md)
230-
* [Collaborations](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/collaborations.md)
231-
* [Collaboration Allowlists](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/collaboration_allowlists.md)
232-
* [Events](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/events.md)
233-
* [Search](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/search.md)
234-
* [Users](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/users.md)
235-
* [Groups](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/groups.md)
236-
* [Tasks](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/tasks.md)
237-
* [Trash](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/trash.md)
238-
* [Collections](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/collections.md)
239-
* [Devices](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/devices.md)
240-
* [Retention Policies](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/retention_policies.md)
241-
* [Legal Holds Policy](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/legal_holds.md)
242-
* [Watermarking](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/watermarking.md)
243-
* [Webhooks](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/webhooks.md)
244-
* [Web Links](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/weblinks.md)
245-
* [Metadata Templates](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/metadata_template.md)
246-
* [Classifications](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/classifications.md)
247-
* [Recent Items](https://github.com/box/box-java-sdk/blob/v3.8.2/doc/recent_items.md)
224+
* [Overview](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/overview.md)
225+
* [Configuration](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/configuration.md)
226+
* [Logging](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/logging.md)
227+
* [Authentication](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/authentication.md)
228+
* [Files](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/files.md)
229+
* [Folders](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/folders.md)
230+
* [Comments](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/comments.md)
231+
* [Collaborations](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/collaborations.md)
232+
* [Collaboration Allowlists](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/collaboration_allowlists.md)
233+
* [Events](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/events.md)
234+
* [Search](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/search.md)
235+
* [Users](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/users.md)
236+
* [Groups](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/groups.md)
237+
* [Tasks](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/tasks.md)
238+
* [Trash](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/trash.md)
239+
* [Collections](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/collections.md)
240+
* [Devices](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/devices.md)
241+
* [Retention Policies](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/retention_policies.md)
242+
* [Legal Holds Policy](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/legal_holds.md)
243+
* [Watermarking](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/watermarking.md)
244+
* [Webhooks](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/webhooks.md)
245+
* [Web Links](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/weblinks.md)
246+
* [Metadata Templates](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/metadata_template.md)
247+
* [Classifications](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/classifications.md)
248+
* [Recent Items](https://github.com/box/box-java-sdk/blob/v4.0.0/doc/recent_items.md)
248249

249250

250251
Javadocs are generated when `gradle javadoc` is run and can be found in

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sourceCompatibility = 1.8
1313

1414
group = "com.box"
1515
archivesBaseName = "box-java-sdk"
16-
version = "3.8.2"
16+
version = "4.0.0"
1717

1818
java {
1919
withJavadocJar()

src/main/java/com/box/sdk/BoxAPIConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class BoxAPIConnection {
8484
private static final String BOX_NOTIFICATIONS_HEADER = "Box-Notifications";
8585

8686
private static final String JAVA_VERSION = System.getProperty("java.version");
87-
private static final String SDK_VERSION = "3.8.2";
87+
private static final String SDK_VERSION = "4.0.0";
8888

8989
/**
9090
* The amount of buffer time, in milliseconds, to use when determining if an access token should be refreshed. For

0 commit comments

Comments
 (0)