Skip to content

fix(deps): update all to v18 (major)#1215

Merged
renovate[bot] merged 1 commit intomasterfrom
renovate/major-all
May 3, 2025
Merged

fix(deps): update all to v18 (major)#1215
renovate[bot] merged 1 commit intomasterfrom
renovate/major-all

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented May 3, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.commercetools.sdk:commercetools-sdk-java-api (source) 17.30.0 -> 18.0.0 age adoption passing confidence
com.commercetools.sdk:commercetools-http-client (source) 17.30.0 -> 18.0.0 age adoption passing confidence

Release Notes

commercetools/commercetools-sdk-java-v2 (com.commercetools.sdk:commercetools-sdk-java-api)

v18.0.0

Compare Source

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:

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

Full Changelog: commercetools/commercetools-sdk-java-v2@17.30.0...18.0.0


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot merged commit f60ac65 into master May 3, 2025
11 checks passed
@renovate renovate bot deleted the renovate/major-all branch May 3, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants