@@ -62,7 +62,8 @@ tasks["clean"].doFirst {
6262 delete(" smithy-build.json" )
6363}
6464
65- tasks.create<SmithyBuild >(" buildSdk" ) {
65+ tasks.create<SmithyBuild >(" generateSdk" ) {
66+ group = " codegen"
6667 // ensure the generated clients use the same version of the runtime as the aws aws-runtime
6768 val smithyKotlinVersion: String by project
6869 doFirst {
@@ -71,13 +72,12 @@ tasks.create<SmithyBuild>("buildSdk") {
7172 addRuntimeClasspath = true
7273 dependsOn(tasks[" generateSmithyBuild" ])
7374 inputs.file(projectDir.resolve(" smithy-build.json" ))
75+ // ensure smithy-aws-kotlin-codegen is up to date
76+ inputs.files(configurations.compileClasspath)
7477}
7578
76- // Run the `buildSdk` automatically.
77- tasks[" build" ].finalizedBy(tasks[" buildSdk" ])
78-
7979// force rebuild every time while developing
80- tasks[" buildSdk " ].outputs.upToDateWhen { false }
80+ tasks[" generateSdk " ].outputs.upToDateWhen { false }
8181
8282data class ProtocolTest (val projectionName : String , val serviceShapeId : String ) {
8383 val packageName: String
@@ -173,7 +173,7 @@ open class ProtocolTestTask : DefaultTask() {
173173
174174enabledProtocols.forEach {
175175 tasks.register<ProtocolTestTask >(" testProtocol-${it.projectionName} " ) {
176- dependsOn(tasks.build )
176+ dependsOn(tasks[ " generateSdk " ] )
177177 group = " Verification"
178178 protocol = it.projectionName
179179 plugin = " kotlin-codegen"
0 commit comments