AWS SDK for Java Version 2: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
repositories {
mavenCentral()
}
dependencies {
dependencies {
  implementation platform('software.amazon.awssdk:bom:2.17.51')
  implementation platform('software.amazon.awssdk:bom:2.17.51')
  // Declare individual SDK dependencies without version
  // Declare individual SDK dependencies without version
implementation 'software.amazon.awssdk:kinesis'
}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 05:20, 3 October 2021

External

Internal

Gradle Project

https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-gradle.html

Add the AWS SDK 2 BOM to the dependencies section of the file, and then declare individual SDK dependencies without a version:

repositories {
 mavenCentral()
}

dependencies {
 implementation platform('software.amazon.awssdk:bom:2.17.51')
 // Declare individual SDK dependencies without version
 implementation 'software.amazon.awssdk:kinesis'
}

Dependency

SDK 2

repositories {
    
    mavenCentral()
}

dependencies {

    implementation 'software.amazon.awssdk:aws-sdk-java:2.17.51'
}