I'd like to add the latest AWS SDK for Java v2 to my project's Gradle dependencies.
In my case I'd like to add a dependency for software.amazon.awssdk:core
. According to the docs I need to add these lines to the dependencies
block:
implementation platform('software.amazon.awssdk:bom:2.10.86')
implementation 'software.amazon.awssdk:core'
However, this gives me:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find software.amazon.awssdk:core:.
Required by:
project :
When I make the version number for the core artifact explicit, the build works. But this defeats the point of importing a BOM via the platform directive.
I did find this post but as far as I understand Gradle, I am already adding the platform to the implementation
configuration when I follow the Amazon docs.
Currently I am using Gradle 5.6.3. Any hints on making this work are appreciated.