File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,15 @@ dependencies {
7474}
7575
7676tasks.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}
You can’t perform that action at this time.
0 commit comments