Skip to content

Manage aws-crt version together with the AWS SDK version - #1730

Closed
shuseng8 wants to merge 1 commit into
awspring:mainfrom
shuseng8:issue-1711
Closed

shuseng8 wants to merge 1 commit into
awspring:mainfrom
shuseng8:issue-1711

Conversation

@shuseng8

@shuseng8 shuseng8 commented Nov 1, 2026

Copy link
Copy Markdown

Fixes #1711

The AWS SDK BOM doesn't manage software.amazon.awssdk.crt:aws-crt, so users who declare it directly have to pick a version by hand.

  • Adds an aws-crt.version property next to awssdk-v2.version (0.48.5, matching AWS SDK 2.57.1) and manages aws-crt in spring-cloud-aws-dependencies, as discussed in the issue.
  • Documents it in s3.adoc and in "Choosing AWS SDK version", including that overriding the AWS SDK version means aligning aws-crt too.

Tested with help:effective-pom and dependency:tree on the s3 and autoconfigure modules, plus a docs build. aws-crt.version needs a bump with each awssdk-v2.version bump (Renovate can handle that).

The AWS SDK BOM does not manage software.amazon.awssdk.crt:aws-crt,
so users declaring it directly have to pick a version by hand and can
end up with a CRT that does not match the SDK used by Spring Cloud AWS.

Add an aws-crt.version property next to awssdk-v2.version, aligned with
the awscrt.version used by AWS SDK 2.57.1 (0.48.5), and manage aws-crt
in spring-cloud-aws-dependencies. Document that users overriding the
AWS SDK version should also align the aws-crt version.

Fixes awspringgh-1711
@github-actions github-actions Bot added type: documentation Documentation or Samples related issue type: dependency-upgrade Dependency version bump labels Nov 1, 2026
@shuseng8

shuseng8 commented Nov 7, 2026

Copy link
Copy Markdown
Author

Hi @klopfdreh, this PR implements the approach you suggested on #1711: aws-crt is now managed in spring-cloud-aws-dependencies, and there's a doc note explaining the alignment caveat. Whenever you have a moment, I'd really appreciate a review. Thanks!

@klopfdreh klopfdreh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for taking care of this. 👍

@shuseng8

shuseng8 commented Nov 8, 2026

Copy link
Copy Markdown
Author

Hi @MatejNedic @maciejwalkowiak @tomazfernandes, @klopfdreh has approved this PR, which follows the approach agreed on in #1711. When you have a moment, could one of you take a look and approve it if the changes work for you? I'm happy to adjust anything. Thanks!

@shuseng8

Copy link
Copy Markdown
Author

Hi @tomazfernandes, gentle follow-up on this one. It's approved by @klopfdreh and follows the approach agreed on in #1711. It's still mergeable against main. If you get a chance to take a look, I'd really appreciate it, and I'm happy to make any changes needed. Thanks!

@shuseng8

Copy link
Copy Markdown
Author

Hi @maciejwalkowiak, this PR has been approved and is ready from my side. Could you take a look and merge it when you get a chance? Happy to make any changes if needed. Thanks!

@shuseng8

Copy link
Copy Markdown
Author

Hi @maciejwalkowiak, gentle ping on this when you have a moment. It's approved by @klopfdreh and ready from my side. Happy to make any changes. Thanks!

@MatejNedic

Copy link
Copy Markdown
Member

Thanks for this PR @shuseng8 . After looking into it, we're going to close this issue rather than manage aws-crt in spring-cloud-aws-dependencies.

The manual lookup isn't needed if you depend on software.amazon.awssdk:aws-crt-client instead of declaring software.amazon.awssdk.crt:aws-crt directly. aws-crt-client is managed by the AWS SDK BOM and depends on the aws-crt version that SDK release was built with, so the CRT version follows the SDK version automatically and Renovate only has to bump the SDK. This is also why we removed our own aws-crt management in #1072 .

Managing aws-crt in our BOM would override that transitive version. Users who import a newer AWS SDK BOM would then end up with an older CRT than their aws-crt-client expects. We would also have to keep a second version in sync on every SDK upgrade.

If you do need to pin aws-crt yourself, for example to get a native fix early, the matching version is the awscrt.version property in software.amazon.awssdk:aws-sdk-java-pom for your SDK version. If anything in your setup prevents switching to aws-crt-client, let us know and we'll take another look.

@shuseng8

Copy link
Copy Markdown
Author

Thanks for the clear explanation, @MatejNedic. That makes sense — depending on aws-crt-client keeps the CRT version aligned with the SDK without managing aws-crt in the Spring Cloud AWS BOM. I'll follow that approach. Appreciate you taking the time to look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: dependency-upgrade Dependency version bump type: documentation Documentation or Samples related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manage aws-crt.version together with the awssdk-v2.version

3 participants