Skip to content

Commit e535951

Browse files
Be more specific about Smithy versions (#465)
Use a specific version of smithy-cli, and restrict Smithy versions to the bugfix version range of 1.12, instead of any minor version of 1, so that we don't introduce mismatches in the Smithy version downstream.
1 parent 2f375fc commit e535951

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ allprojects {
2828
version = "0.7.0"
2929
}
3030

31+
extra["smithyVersion"] = "[1.12.0,1.13.0["
32+
3133
// The root project doesn't produce a JAR.
3234
tasks["jar"].enabled = false
3335

smithy-typescript-codegen-test/build.gradle.kts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ extra["moduleName"] = "software.amazon.smithy.typescript.codegen.test"
1818

1919
tasks["jar"].enabled = false
2020

21+
buildscript {
22+
repositories {
23+
mavenCentral()
24+
}
25+
dependencies {
26+
"classpath"("software.amazon.smithy:smithy-cli:${rootProject.extra["smithyVersion"]}")
27+
}
28+
}
29+
30+
2131
plugins {
2232
id("software.amazon.smithy").version("0.5.3")
2333
}
@@ -29,6 +39,6 @@ repositories {
2939

3040
dependencies {
3141
implementation(project(":smithy-typescript-codegen"))
32-
implementation("software.amazon.smithy:smithy-waiters:[1.12.0, 2.0[")
33-
implementation("software.amazon.smithy:smithy-protocol-test-traits:[1.12.0, 2.0[")
42+
implementation("software.amazon.smithy:smithy-waiters:${rootProject.extra["smithyVersion"]}")
43+
implementation("software.amazon.smithy:smithy-protocol-test-traits:${rootProject.extra["smithyVersion"]}")
3444
}

smithy-typescript-codegen/build.gradle.kts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ description = "Generates TypeScript code from Smithy models"
1717
extra["displayName"] = "Smithy :: Typescript :: Codegen"
1818
extra["moduleName"] = "software.amazon.smithy.typescript.codegen"
1919

20+
buildscript {
21+
repositories {
22+
mavenCentral()
23+
}
24+
dependencies {
25+
"classpath"("software.amazon.smithy:smithy-cli:${rootProject.extra["smithyVersion"]}")
26+
}
27+
}
28+
29+
2030
dependencies {
21-
api("software.amazon.smithy:smithy-codegen-core:[1.12.0, 2.0[")
22-
api("software.amazon.smithy:smithy-waiters:[1.12.0, 2.0[")
23-
implementation("software.amazon.smithy:smithy-protocol-test-traits:[1.12.0, 2.0[")
31+
api("software.amazon.smithy:smithy-codegen-core:${rootProject.extra["smithyVersion"]}")
32+
api("software.amazon.smithy:smithy-waiters:${rootProject.extra["smithyVersion"]}")
33+
implementation("software.amazon.smithy:smithy-protocol-test-traits:${rootProject.extra["smithyVersion"]}")
2434
}

0 commit comments

Comments
 (0)