Skip to content

Update changelog #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@

# 18.0.0 (2025-05-02)

## New Features

### Java 11

The SDK is built with Java 11 now. We will also take advantage of different language features in future releases.

### New Request Policy Middleware

It's now possible to create request policies based on the requests context. E.g. different timeouts and retries for POST and GET requests:

```java
ProjectApiRoot b = ApiRootBuilder.of()
...
.withRequestPolicies(policies -> policies
.withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.POST),
policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(10)))
.withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.GET),
policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1)))
.withAllOtherRequests(policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(60))))
.build(projectKey);
```

## What's Changed
* fix Delivery discriminators by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/866
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/867
* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/865
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/870
* Update java to 11 by @lojzatran in https://github.com/commercetools/commercetools-sdk-java-v2/pull/844
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/871
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/872
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/873
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/877
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/879
* DEVX-588 adding query predicate builder documentation by @barbara79 in https://github.com/commercetools/commercetools-sdk-java-v2/pull/874
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/883
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/885
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/886
* Add request specific policies by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/882
* chore(deps): lock file maintenance by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/881
* chore(deps): update actions/setup-java digest to c5195ef by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/875
* chore(deps): update actions/create-github-app-token action to v2 by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/869
* chore(deps): update github/codeql-action digest to 97a2bfd by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/868
* fix(deps): update all dependencies by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/858
* revert junit-jupiter by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/887
* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/888
* remove dataprovider library by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/889
* update junit by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/890

**Full Changelog**: https://github.com/commercetools/commercetools-sdk-java-v2/compare/17.30.0...18.0.0

# 17.30.0 (2025-03-31)

## Important information
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The latest stable SDK release can be retrieved from [Maven Central](https://sear
```gradle
ext {
versions = [
commercetools: "17.30.0"
commercetools: "18.0.0"
]
}

Expand All @@ -42,7 +42,7 @@ dependencies {

```maven
<properties>
<commercetools.version>17.30.0</commercetools.version>
<commercetools.version>18.0.0</commercetools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven-okhttp3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</plugins>
</build>
<properties>
<commercetools.version>17.30.0</commercetools.version>
<commercetools.version>18.0.0</commercetools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven-okhttp4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</plugins>
</build>
<properties>
<commercetools.version>17.30.0</commercetools.version>
<commercetools.version>18.0.0</commercetools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion examples/spring-datadog-statsd/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {

ext {
versions = [
commercetools: "17.30.0",
commercetools: "18.0.0",
]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/spring-datadog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

ext {
versions = [
commercetools: "17.30.0",
commercetools: "18.0.0",
]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/spring-dynatrace-oneagent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {

ext {
versions = [
commercetools: "17.30.0",
commercetools: "18.0.0",
]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/spring-newrelic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

ext {
versions = [
commercetools: "17.30.0",
commercetools: "18.0.0",
newrelic: "8.16.0"
]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/spring-otel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

ext {
versions = [
commercetools: "17.30.0",
commercetools: "18.0.0",
]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spotless {

ext {
versions = [
commercetools: "17.30.0"
commercetools: "18.0.0"
]
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Mon Mar 31 12:53:19 UTC 2025
#Fri May 02 10:39:40 UTC 2025
kotlinVersion=1.5.30
org.gradle.jvmargs=-Xmx2048m
version=17.31.0-SNAPSHOT
version=18.1.0-SNAPSHOT
1 change: 0 additions & 1 deletion reference.txt

This file was deleted.