@@ -12,74 +12,53 @@ plugins {
1212description = " Support for AWS configuration"
1313extra[" moduleName" ] = " aws.sdk.kotlin.runtime.config"
1414
15- val smithyKotlinVersion: String by project
16- val kotestVersion: String by project
17- val coroutinesVersion: String by project
18- val atomicFuVersion: String by project
19-
20- buildscript {
21- val atomicFuVersion: String by project
22-
23- repositories {
24- mavenCentral()
25- }
26-
27- dependencies {
28- classpath(" org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion " )
29- }
30- }
3115apply (plugin = " kotlinx-atomicfu" )
3216
3317kotlin {
3418 sourceSets {
3519 commonMain {
3620 dependencies {
3721 api(project(" :aws-runtime:aws-core" ))
38- api(" aws .smithy.kotlin: aws- credentials: $smithyKotlinVersion " )
39- implementation(" aws .smithy.kotlin: http: $smithyKotlinVersion " )
40- implementation(" aws .smithy.kotlin: http- auth: $smithyKotlinVersion " )
41- implementation(" aws .smithy.kotlin: telemetry- api: $smithyKotlinVersion " )
42- implementation(" aws .smithy.kotlin: http- client- engine- default: $smithyKotlinVersion " )
22+ api(libs .smithy.kotlin. aws. credentials)
23+ implementation(libs .smithy.kotlin. http)
24+ implementation(libs .smithy.kotlin. http. auth)
25+ implementation(libs .smithy.kotlin. telemetry. api)
26+ implementation(libs .smithy.kotlin. http. client. engine. default)
4327 implementation(project(" :aws-runtime:aws-http" ))
4428
4529 // parsing common JSON credentials responses
46- implementation(" aws .smithy.kotlin: serde- json: $smithyKotlinVersion " )
30+ implementation(libs .smithy.kotlin. serde. json)
4731
48- // additional dependencies required by generated sts provider
49- implementation(" aws.smithy.kotlin:http-client:$smithyKotlinVersion " )
50- implementation(" aws.smithy.kotlin:serde-form-url:$smithyKotlinVersion " )
51- implementation(" aws.smithy.kotlin:serde-xml:$smithyKotlinVersion " )
52- implementation(" aws.smithy.kotlin:aws-xml-protocols:$smithyKotlinVersion " )
53- implementation(" aws.smithy.kotlin:aws-protocol-core:$smithyKotlinVersion " )
32+ // additional dependencies required by generated clients
33+ implementation(libs.bundles.smithy.kotlin.service.client)
5434 implementation(project(" :aws-runtime:aws-endpoint" ))
55- implementation(" aws.smithy.kotlin:aws-signing-common:$smithyKotlinVersion " )
56- implementation(" aws.smithy.kotlin:aws-signing-default:$smithyKotlinVersion " )
57- implementation(" aws.smithy.kotlin:http-auth-aws:$smithyKotlinVersion " )
58- implementation(" aws.smithy.kotlin:telemetry-defaults:$smithyKotlinVersion " )
35+
36+ // additional dependencies required by generated sts provider
37+ implementation(libs.smithy.kotlin.serde.xml)
38+ implementation(libs.smithy.kotlin.serde.formurl)
39+ implementation(libs.smithy.kotlin.aws.xml.protocols)
5940
6041 // additional dependencies required by generated sso provider(s)
61- implementation(" aws .smithy.kotlin: aws- json- protocols: $smithyKotlinVersion " )
42+ implementation(libs .smithy.kotlin. aws. json. protocols)
6243
6344 // atomics
64- implementation(" org.jetbrains. kotlinx: atomicfu: $atomicFuVersion " )
45+ implementation(libs. kotlinx. atomicfu)
6546
6647 // coroutines
67- implementation(" org.jetbrains. kotlinx:kotlinx- coroutines- core: $coroutinesVersion " )
48+ implementation(libs. kotlinx. coroutines. core)
6849 }
6950 }
7051 commonTest {
7152 dependencies {
72- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion " )
73- implementation(" aws.smithy.kotlin:http-test:$smithyKotlinVersion " )
74- val kotlinxSerializationVersion: String by project
75- val mockkVersion: String by project
76- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion " )
77- implementation(" io.mockk:mockk:$mockkVersion " )
53+ implementation(libs.kotlinx.coroutines.test)
54+ implementation(libs.smithy.kotlin.http.test)
55+ implementation(libs.kotlinx.serialization.json)
56+ implementation(libs.mockk)
7857 }
7958 }
8059 jvmTest {
8160 dependencies {
82- implementation(" io .kotest:kotest- runner- junit5: $kotestVersion " )
61+ implementation(libs .kotest. runner. junit5)
8362 }
8463 }
8564
0 commit comments