Skip to content

Commit bfa65cd

Browse files
committed
update build to catch upstream changes
1 parent 8960483 commit bfa65cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

codegen/protocol-tests/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,15 @@ dependencies {
7474
}
7575

7676
tasks.generateSmithyProjections {
77-
// ensure the generated clients use the same version of the runtime as the aws aws-runtime
78-
val smithyKotlinRuntimeVersion = libs.versions.smithy.kotlin.runtime.version.get()
7977
doFirst {
78+
val smithyKotlinRuntimeVersion = rootProject.file("../smithy-kotlin/gradle.properties")
79+
.readText()
80+
.lines()
81+
.find { it.startsWith("sdkVersion=") }
82+
?.substringAfter("sdkVersion=")
83+
?: libs.versions.smithy.kotlin.runtime.version.get()
84+
85+
// ensure the generated clients use the same version of the runtime as the aws aws-runtime
8086
System.setProperty("smithy.kotlin.codegen.clientRuntimeVersion", smithyKotlinRuntimeVersion)
8187
}
8288
}

0 commit comments

Comments
 (0)