Skip to content

Commit

Permalink
codegen: Adds smithy-cli dependency to prevent auto use of smithy-cli…
Browse files Browse the repository at this point in the history
… 1.16 (#1552)

Fixes the SDK's code generation to pin smithy-cli to $smithyVersion to
restrict the supported version.
  • Loading branch information
jasdel committed Jan 11, 2022
1 parent 3ec6226 commit 576b415
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codegen/protocol-test-codegen/build.gradle.kts
Expand Up @@ -17,6 +17,16 @@ import software.amazon.smithy.gradle.tasks.SmithyBuild

val smithyVersion: String by project

buildscript {
val smithyVersion: String by project
repositories {
mavenCentral()
}
dependencies {
"classpath"("software.amazon.smithy:smithy-cli:$smithyVersion")
}
}

plugins {
id("software.amazon.smithy") version "0.5.3"
}
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/build.gradle.kts
Expand Up @@ -19,9 +19,15 @@ import software.amazon.smithy.model.shapes.ServiceShape
import software.amazon.smithy.gradle.tasks.SmithyBuild
import software.amazon.smithy.aws.traits.ServiceTrait

val smithyVersion: String by project

buildscript {
val smithyVersion: String by project
repositories {
mavenCentral()
}
dependencies {
"classpath"("software.amazon.smithy:smithy-cli:$smithyVersion")
"classpath"("software.amazon.smithy:smithy-aws-traits:$smithyVersion")
}
}
Expand Down

0 comments on commit 576b415

Please sign in to comment.