AWS SDK for Java Version 1: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:
=Internal=
=Internal=
* [[AWS_SDK_for_Java#Subjects|AWS SDK for Java]]
* [[AWS_SDK_for_Java#Subjects|AWS SDK for Java]]
=Gradle Project Setup=
{{External|https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-project-gradle.html}}
Add the AWS SDK 1 BOM to the <code>dependencies</code> section of the file, and then declare individual SDK dependencies without a version:
<syntaxhighlight lang='groovy'>
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'
}
</syntaxhighlight>
=Dependency=
=Dependency=
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>

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'
}

Dependency

repositories {
    
    mavenCentral()
}

dependencies {

    // SDK 1
    implementation 'com.amazonaws:<component-name>:1.<minor>.<patch>'
}

Example:

repositories {
    
    mavenCentral()
}

dependencies {

    implementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.471'
}