Closed dbwiddis closed 2 months ago
Updating to note that I have resolved this.
It's not the breaking change that was the issue; my build.gradle
was not resolving transitive dependencies for some reason unknown to me (but probably associated with a gradle plugin that tries to avoid jar hell). The following worked for me
implementation "com.amazonaws:aws-encryption-sdk-java:3.0.1"
implementation "software.amazon.cryptography:aws-cryptographic-material-providers:1.0.2"
implementation "org.dafny:DafnyRuntime:4.2.0"
implementation "software.amazon.smithy.dafny:conversion:0.1"
On the way, when I thought it was the problem, I also struggled with getting the bom imported per the README here. Figured out that the Spring Dependency Management Plugin works great for importing Maven-based bom definitions into Gradle. Ended up not needing the BOM but it's useful for the future.
Closing this issue as it's resolved.
Problem:
I am trying to upgrade from 2.4.1 to 3.0.1. The Release Notes for 3.0.0 (un)helpfully state:
OK, great. So I went to these docs and added these lines to my
build.gradle
:That still doesn't resolve it.
Here's the method that no longer compiles in v3:
The error message is:
A web search for
ICryptographicMaterialsManager
shows the Encryption SDK as the only result.Looking at the
pom.xml
for this project, I triedThis compiles, but fails with
Solution:
Please give more clear details in either the release notes, or an "Upgrading" doc, or point me to anywhere this is clearly documented how to upgrade. The reference to "AWS SDK v2 Java" is not useful in actually determining the appropriate dependency.