File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed
smithy-typescript-codegen
smithy-typescript-codegen-test Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ allprojects {
28
28
version = " 0.7.0"
29
29
}
30
30
31
+ extra[" smithyVersion" ] = " [1.12.0,1.13.0["
32
+
31
33
// The root project doesn't produce a JAR.
32
34
tasks[" jar" ].enabled = false
33
35
Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ extra["moduleName"] = "software.amazon.smithy.typescript.codegen.test"
18
18
19
19
tasks[" jar" ].enabled = false
20
20
21
+ buildscript {
22
+ repositories {
23
+ mavenCentral()
24
+ }
25
+ dependencies {
26
+ " classpath" (" software.amazon.smithy:smithy-cli:${rootProject.extra[" smithyVersion" ]} " )
27
+ }
28
+ }
29
+
30
+
21
31
plugins {
22
32
id(" software.amazon.smithy" ).version(" 0.5.3" )
23
33
}
@@ -29,6 +39,6 @@ repositories {
29
39
30
40
dependencies {
31
41
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 " ]} " )
34
44
}
Original file line number Diff line number Diff line change @@ -17,8 +17,18 @@ description = "Generates TypeScript code from Smithy models"
17
17
extra[" displayName" ] = " Smithy :: Typescript :: Codegen"
18
18
extra[" moduleName" ] = " software.amazon.smithy.typescript.codegen"
19
19
20
+ buildscript {
21
+ repositories {
22
+ mavenCentral()
23
+ }
24
+ dependencies {
25
+ " classpath" (" software.amazon.smithy:smithy-cli:${rootProject.extra[" smithyVersion" ]} " )
26
+ }
27
+ }
28
+
29
+
20
30
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 " ]} " )
24
34
}
You can’t perform that action at this time.
0 commit comments