Skip to content

Commit 576b415

Browse files
authored
codegen: Adds smithy-cli dependency to prevent auto use of smithy-cli 1.16 (#1552)
Fixes the SDK's code generation to pin smithy-cli to $smithyVersion to restrict the supported version.
1 parent 3ec6226 commit 576b415

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

codegen/protocol-test-codegen/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ import software.amazon.smithy.gradle.tasks.SmithyBuild
1717

1818
val smithyVersion: String by project
1919

20+
buildscript {
21+
val smithyVersion: String by project
22+
repositories {
23+
mavenCentral()
24+
}
25+
dependencies {
26+
"classpath"("software.amazon.smithy:smithy-cli:$smithyVersion")
27+
}
28+
}
29+
2030
plugins {
2131
id("software.amazon.smithy") version "0.5.3"
2232
}

codegen/sdk-codegen/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ import software.amazon.smithy.model.shapes.ServiceShape
1919
import software.amazon.smithy.gradle.tasks.SmithyBuild
2020
import software.amazon.smithy.aws.traits.ServiceTrait
2121

22+
val smithyVersion: String by project
23+
2224
buildscript {
2325
val smithyVersion: String by project
26+
repositories {
27+
mavenCentral()
28+
}
2429
dependencies {
30+
"classpath"("software.amazon.smithy:smithy-cli:$smithyVersion")
2531
"classpath"("software.amazon.smithy:smithy-aws-traits:$smithyVersion")
2632
}
2733
}

0 commit comments

Comments
 (0)