AWS SDK for Java Version 1: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
  // Declare individual SDK dependencies without version
  // Declare individual SDK dependencies without version
  implementation 'com.amazonaws:aws-java-sdk-s3'
  implementation 'com.amazonaws:aws-java-sdk-s3'
}
</syntaxhighlight>
=Dependency=
<syntaxhighlight lang='groovy'>
repositories {
   
    mavenCentral()
}
dependencies {
    // SDK 1
    implementation 'com.amazonaws:<component-name>:1.<minor>.<patch>'
}
</syntaxhighlight>
Example:
<syntaxhighlight lang='groovy'>
repositories {
   
    mavenCentral()
}
dependencies {
    implementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.471'
}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 05:36, 3 October 2021

External

Internal

Gradle Project Setup

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

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

repositories {
 mavenCentral()
}

dependencies {
 implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.1000')
 // Declare individual SDK dependencies without version
 implementation 'com.amazonaws:aws-java-sdk-s3'
}