From f34925e53d65741786d985afc0e1f8a5cb36b962 Mon Sep 17 00:00:00 2001 From: Todd Hill <110035210+tkhill-AWS@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:05:05 -0500 Subject: [PATCH] Swap snippet tags for Kotlin's presigned URL example (#5618) Swap snippets 's3.kotlin.getObjectMoreOptions.main' with 's3.kotlin.presign_putObject.main' add 'settings.gradle.kts' to s3 directory to appease Intellij's need for a project model https://sim.amazon.com/issues/V1051009809 --- .doc_gen/metadata/s3_metadata.yaml | 10 +++++----- kotlin/services/s3/build.gradle.kts | 19 ++++++++++++++----- kotlin/services/s3/settings.gradle.kts | 1 + 3 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 kotlin/services/s3/settings.gradle.kts diff --git a/.doc_gen/metadata/s3_metadata.yaml b/.doc_gen/metadata/s3_metadata.yaml index 8f0adb0c8aa..5302d0cae39 100644 --- a/.doc_gen/metadata/s3_metadata.yaml +++ b/.doc_gen/metadata/s3_metadata.yaml @@ -2373,15 +2373,15 @@ s3_Scenario_PresignedUrl: github: kotlin/services/s3 sdkguide: sdk-for-kotlin/latest/developer-guide/presign-requests.html excerpts: - - description: Create a GetObject presigned request and use the URL to download an object. + - description: Create a GetObject presigned request and use the URL to download an object. snippet_tags: - s3.kotlin.presign_getObject.main - - description: Create a GetObject presigned request with advanced options and use the URL to download an object. - snippet_tags: - - s3.kotlin.presign_putObject.main - - description: Create a PutObject presigned request and use it to upload an object. + - description: Create a GetObject presigned request with advanced options and use the URL to download an object. snippet_tags: - s3.kotlin.presign_getObjectMoreOptions.main + - description: Create a PutObject presigned request and use it to upload an object. + snippet_tags: + - s3.kotlin.presign_putObject.main Rust: versions: - sdk_version: 1 diff --git a/kotlin/services/s3/build.gradle.kts b/kotlin/services/s3/build.gradle.kts index 5d8fdfb5d30..e0ba983f90b 100644 --- a/kotlin/services/s3/build.gradle.kts +++ b/kotlin/services/s3/build.gradle.kts @@ -21,15 +21,24 @@ repositories { mavenCentral() jcenter() } + apply(plugin = "org.jlleitschuh.gradle.ktlint") + dependencies { - implementation("aws.sdk.kotlin:s3:0.30.1-beta") - implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta") - implementation("com.google.code.gson:gson:2.10") - testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") + implementation("aws.sdk.kotlin:s3-jvm:0.26.0-beta") + implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0") + implementation("com.squareup.okhttp3:okhttp:4.10.0") + implementation("aws.smithy.kotlin:aws-signing-crt:0.21.0") + testImplementation(kotlin("test")) + testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1") implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2") } + tasks.withType() { kotlinOptions.jvmTarget = "1.8" } + +tasks.test { + useJUnitPlatform() +} diff --git a/kotlin/services/s3/settings.gradle.kts b/kotlin/services/s3/settings.gradle.kts new file mode 100644 index 00000000000..42c5db57c32 --- /dev/null +++ b/kotlin/services/s3/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "s3"