@@ -7,10 +7,6 @@ import aws.sdk.kotlin.gradle.codegen.dsl.generateSmithyProjections
77import aws.sdk.kotlin.gradle.codegen.dsl.smithyKotlinPlugin
88import aws.sdk.kotlin.gradle.codegen.smithyKotlinProjectionSrcDir
99
10- plugins {
11- alias(libs.plugins.kotlin.jvm)
12- alias(libs.plugins.aws.kotlin.repo.tools.smithybuild)
13- }
1410
1511description = " Event stream codegen integration test suite"
1612
@@ -76,27 +72,12 @@ smithyBuild {
7672 }
7773}
7874
79- val codegen by configurations.getting
80- dependencies {
81- codegen(project(" :codegen:aws-sdk-codegen" ))
82- codegen(libs.smithy.cli)
83- codegen(libs.smithy.model)
84- }
85-
8675tasks.generateSmithyBuild {
8776 doFirst {
8877 tests.forEach { test -> fillInModel(test.model, test.protocolName, test.modelTemplate) }
8978 }
9079}
9180
92- tasks.generateSmithyProjections {
93- doFirst {
94- // ensure the generated tests use the same version of the runtime as the aws aws-runtime
95- val smithyKotlinRuntimeVersion = libs.versions.smithy.kotlin.runtime.version.get()
96- System .setProperty(" smithy.kotlin.codegen.clientRuntimeVersion" , smithyKotlinRuntimeVersion)
97- }
98- }
99-
10081val optinAnnotations = listOf (
10182 " kotlin.RequiresOptIn" ,
10283 " aws.smithy.kotlin.runtime.InternalApi" ,
@@ -112,12 +93,6 @@ kotlin.sourceSets.getByName("test") {
11293 }
11394}
11495
115- tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
116- dependsOn(tasks.generateSmithyProjections)
117- // generated clients have quite a few warnings
118- kotlinOptions.allWarningsAsErrors = false
119- }
120-
12196tasks.test {
12297 useJUnitPlatform()
12398 testLogging {
@@ -129,30 +104,30 @@ tasks.test {
129104 }
130105}
131106
132- dependencies {
133-
134- implementation(libs.kotlinx.coroutines.core)
135-
136- testImplementation(libs.kotlin.test)
137- testImplementation(libs.kotlin.test.junit5)
138- testImplementation(libs.kotlinx.coroutines.test)
139-
140- testImplementation(libs.smithy.kotlin.smithy.test)
141- testImplementation(libs.smithy.kotlin.aws.signing.default)
142- testImplementation(libs.smithy.kotlin.telemetry.api)
143-
144- // have to manually add all the dependencies of the generated client(s)
145- // doing it this way (as opposed to doing what we do for protocol-tests) allows
146- // the tests to work without a publish to maven-local step at the cost of maintaining
147- // this set of dependencies manually
148- // <-- BEGIN GENERATED DEPENDENCY LIST -->
149- implementation(libs.bundles.smithy.kotlin.service.client)
150- implementation(libs.smithy.kotlin.aws.event.stream)
151- implementation(project(" :aws-runtime:aws-http" ))
152- implementation(libs.smithy.kotlin.aws.json.protocols)
153- implementation(libs.smithy.kotlin.serde.json)
154- api(project(" :aws-runtime:aws-config" ))
155- api(project(" :aws-runtime:aws-core" ))
156- api(project(" :aws-runtime:aws-endpoint" ))
157- // <-- END GENERATED DEPENDENCY LIST -->
158- }
107+ // dependencies {
108+ //
109+ // implementation(libs.kotlinx.coroutines.core)
110+ //
111+ // testImplementation(libs.kotlin.test)
112+ // testImplementation(libs.kotlin.test.junit5)
113+ // testImplementation(libs.kotlinx.coroutines.test)
114+ //
115+ // testImplementation(libs.smithy.kotlin.smithy.test)
116+ // testImplementation(libs.smithy.kotlin.aws.signing.default)
117+ // testImplementation(libs.smithy.kotlin.telemetry.api)
118+ //
119+ // // have to manually add all the dependencies of the generated client(s)
120+ // // doing it this way (as opposed to doing what we do for protocol-tests) allows
121+ // // the tests to work without a publish to maven-local step at the cost of maintaining
122+ // // this set of dependencies manually
123+ // // <-- BEGIN GENERATED DEPENDENCY LIST -->
124+ // implementation(libs.bundles.smithy.kotlin.service.client)
125+ // implementation(libs.smithy.kotlin.aws.event.stream)
126+ // implementation(project(":aws-runtime:aws-http"))
127+ // implementation(libs.smithy.kotlin.aws.json.protocols)
128+ // implementation(libs.smithy.kotlin.serde.json)
129+ // api(project(":aws-runtime:aws-config"))
130+ // api(project(":aws-runtime:aws-core"))
131+ // api(project(":aws-runtime:aws-endpoint"))
132+ // // <-- END GENERATED DEPENDENCY LIST -->
133+ // }
0 commit comments