Skip to content

Commit b8d5d82

Browse files
authored
chore: bump version for m0 release (#94)
1 parent da54f2a commit b8d5d82

File tree

14 files changed

+57
-30
lines changed

14 files changed

+57
-30
lines changed

client-runtime/auth/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ description = "AWS Service Authentication"
77
extra["displayName"] = "Software :: AWS :: Kotlin SDK :: Auth"
88
extra["moduleName"] = "aws.sdk.kotlin.runtime.auth"
99

10-
val smithyKotlinClientRtVersion: String by project
10+
val smithyKotlinVersion: String by project
1111

1212
kotlin {
1313
sourceSets {
1414
commonMain {
1515
dependencies {
1616
val crtKotlinVersion: String by project
1717
api(project(":client-runtime:aws-client-rt"))
18-
api("software.aws.smithy.kotlin:http:$smithyKotlinClientRtVersion")
18+
api("software.aws.smithy.kotlin:http:$smithyKotlinVersion")
1919
implementation(project(":client-runtime:crt-util"))
2020
implementation("aws.sdk.kotlin.crt:aws-crt-kotlin:$crtKotlinVersion")
2121
}

client-runtime/aws-client-rt/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ extra["displayName"] = "Software :: AWS :: Kotlin SDK :: Client Runtime"
88
extra["moduleName"] = "aws.sdk.kotlin.runtime"
99

1010

11-
val smithyKotlinClientRtVersion: String by project
11+
val smithyKotlinVersion: String by project
1212

1313
kotlin {
1414
sourceSets {
1515
commonMain {
1616
dependencies {
17-
api("software.aws.smithy.kotlin:client-rt-core:$smithyKotlinClientRtVersion")
17+
api("software.aws.smithy.kotlin:client-rt-core:$smithyKotlinVersion")
1818
}
1919
}
2020
}

client-runtime/crt-util/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = "Utilities for working with AWS CRT Kotlin"
77
extra["displayName"] = "Software :: AWS :: Kotlin SDK :: CRT :: Util"
88
extra["moduleName"] = "aws.sdk.kotlin.runtime.crt"
99

10-
val smithyKotlinClientRtVersion: String by project
10+
val smithyKotlinVersion: String by project
1111
val crtKotlinVersion: String by project
1212

1313
kotlin {
@@ -16,7 +16,7 @@ kotlin {
1616
dependencies {
1717
api(project(":client-runtime:aws-client-rt"))
1818
api("aws.sdk.kotlin.crt:aws-crt-kotlin:$crtKotlinVersion")
19-
api("software.aws.smithy.kotlin:http:$smithyKotlinClientRtVersion")
19+
api("software.aws.smithy.kotlin:http:$smithyKotlinVersion")
2020
}
2121
}
2222
}

client-runtime/protocols/aws-json-protocols/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ description = "Support for the JSON suite of AWS protocols"
77
extra["displayName"] = "Software :: AWS :: Kotlin SDK :: JSON"
88
extra["moduleName"] = "aws.sdk.kotlin.runtime.protocol.json"
99

10-
val smithyKotlinClientRtVersion: String by project
10+
val smithyKotlinVersion: String by project
1111

1212
kotlin {
1313
sourceSets {
1414
commonMain {
1515
dependencies {
16-
api("software.aws.smithy.kotlin:http:$smithyKotlinClientRtVersion")
16+
api("software.aws.smithy.kotlin:http:$smithyKotlinVersion")
1717
api(project(":client-runtime:aws-client-rt"))
1818
implementation(project(":client-runtime:protocols:http"))
19-
implementation("software.aws.smithy.kotlin:serde:$smithyKotlinClientRtVersion")
20-
implementation("software.aws.smithy.kotlin:serde-json:$smithyKotlinClientRtVersion")
21-
implementation("software.aws.smithy.kotlin:utils:$smithyKotlinClientRtVersion")
19+
implementation("software.aws.smithy.kotlin:serde:$smithyKotlinVersion")
20+
implementation("software.aws.smithy.kotlin:serde-json:$smithyKotlinVersion")
21+
implementation("software.aws.smithy.kotlin:utils:$smithyKotlinVersion")
2222
}
2323
}
2424

client-runtime/protocols/aws-json-protocols/common/src/aws/sdk/kotlin/runtime/protocol/json/RestJsonError.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class RestJsonError(private val registry: ExceptionRegistry) : Feature {
6666
error = RestJsonErrorDeserializer.deserialize(httpResponse, payload)
6767
} catch (ex: Exception) {
6868
throw UnknownServiceErrorException(
69-
"failed to parse response as restJson protocol error",
69+
"failed to parse response as Json protocol error",
7070
ex
7171
).also {
7272
setAseFields(it, wrappedResponse, null)
@@ -76,7 +76,7 @@ public class RestJsonError(private val registry: ExceptionRegistry) : Feature {
7676
// we already consumed the response body, wrap it to allow the modeled exception to deserialize
7777
// any members that may be bound to the document
7878
val deserializer = registry[error.code]?.deserializer
79-
val modeledException = deserializer?.deserialize(req.context, wrappedResponse) ?: UnknownServiceErrorException()
79+
val modeledException = deserializer?.deserialize(req.context, wrappedResponse) ?: UnknownServiceErrorException(error.message).also { setAseFields(it, wrappedResponse, error) }
8080
setAseFields(modeledException, wrappedResponse, error)
8181

8282
// this should never happen...

client-runtime/protocols/aws-json-protocols/common/test/aws/sdk/kotlin/runtime/protocol/json/RestJsonErrorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,6 @@ class RestJsonErrorTest {
242242
// verify it pulls out the error details/meta
243243
assertEquals(ex.errorCode, "")
244244
assertEquals(ex.requestId, "guid")
245-
assertEquals(ex.message, "failed to parse response as restJson protocol error")
245+
assertEquals(ex.message, "failed to parse response as Json protocol error")
246246
}
247247
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
kotlin {
22
jvm() // Create a JVM target with the default name 'jvm'
3-
}
3+
}

client-runtime/protocols/http/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ description = "HTTP core for AWS service clients"
77
extra["displayName"] = "Software :: AWS :: Kotlin SDK :: HTTP"
88
extra["moduleName"] = "aws.sdk.kotlin.runtime.http"
99

10-
val smithyKotlinClientRtVersion: String by project
10+
val smithyKotlinVersion: String by project
1111

1212
kotlin {
1313
sourceSets {
1414
commonMain {
1515
dependencies {
1616
api(project(":client-runtime:aws-client-rt"))
1717
api(project(":client-runtime:regions"))
18-
api("software.aws.smithy.kotlin:http:$smithyKotlinClientRtVersion")
18+
api("software.aws.smithy.kotlin:http:$smithyKotlinVersion")
1919
}
2020
}
2121

client-runtime/testing/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
description = "Internal test utilities"
6+
description = "Internal test utilities"

codegen/protocol-tests/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ tasks["smithyBuildJar"].enabled = false
3333

3434
tasks.create<SmithyBuild>("buildSdk") {
3535
// ensure the generated clients use the same version of the runtime as the aws client-runtime
36-
val smithyKotlinClientRtVersion: String by project
36+
val smithyKotlinVersion: String by project
3737
doFirst {
38-
System.setProperty("smithy.kotlin.codegen.clientRuntimeVersion", smithyKotlinClientRtVersion)
38+
System.setProperty("smithy.kotlin.codegen.clientRuntimeVersion", smithyKotlinVersion)
3939
}
4040
addRuntimeClasspath = true
4141
}

0 commit comments

Comments
 (0)