File tree Expand file tree Collapse file tree 4 files changed +21
-13
lines changed
smithy-typescript-codegen-test
smithy-typescript-codegen Expand file tree Collapse file tree 4 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ allprojects {
28
28
version = " 0.12.0"
29
29
}
30
30
31
- extra[" smithyVersion" ] = " [1.25.0,1.26.0["
32
-
33
31
// The root project doesn't produce a JAR.
34
32
tasks[" jar" ].enabled = false
35
33
Original file line number Diff line number Diff line change
1
+ smithyVersion =[1.25.0,1.26.0[
2
+ smithyGradleVersion =0.6.0
Original file line number Diff line number Diff line change @@ -18,18 +18,23 @@ extra["moduleName"] = "software.amazon.smithy.typescript.codegen.test"
18
18
19
19
tasks[" jar" ].enabled = false
20
20
21
+ val smithyVersion: String by project
22
+
21
23
buildscript {
24
+ val smithyVersion: String by project
25
+
22
26
repositories {
23
27
mavenCentral()
24
28
}
25
29
dependencies {
26
- " classpath" (" software.amazon.smithy:smithy-cli:${rootProject.extra[ " smithyVersion" ]} " )
30
+ " classpath" (" software.amazon.smithy:smithy-cli:$smithyVersion " )
27
31
}
28
32
}
29
33
30
-
31
34
plugins {
32
- id(" software.amazon.smithy" ).version(" 0.6.0" )
35
+ val smithyGradleVersion: String by project
36
+
37
+ id(" software.amazon.smithy" ).version(smithyGradleVersion)
33
38
}
34
39
35
40
repositories {
@@ -39,6 +44,6 @@ repositories {
39
44
40
45
dependencies {
41
46
implementation(project(" :smithy-typescript-codegen" ))
42
- implementation(" software.amazon.smithy:smithy-waiters:${rootProject.extra[ " smithyVersion" ]} " )
43
- implementation(" software.amazon.smithy:smithy-protocol-test-traits:${rootProject.extra[ " smithyVersion" ]} " )
47
+ implementation(" software.amazon.smithy:smithy-waiters:$smithyVersion " )
48
+ implementation(" software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion " )
44
49
}
Original file line number Diff line number Diff line change @@ -17,19 +17,22 @@ 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
+ val smithyVersion: String by project
21
+
20
22
buildscript {
23
+ val smithyVersion: String by project
24
+
21
25
repositories {
22
26
mavenCentral()
23
27
}
24
28
dependencies {
25
- " classpath" (" software.amazon.smithy:smithy-cli:${rootProject.extra[ " smithyVersion" ]} " )
29
+ " classpath" (" software.amazon.smithy:smithy-cli:$smithyVersion " )
26
30
}
27
31
}
28
32
29
-
30
33
dependencies {
31
- api(" software.amazon.smithy:smithy-codegen-core:${rootProject.extra[ " smithyVersion" ]} " )
32
- api(" software.amazon.smithy:smithy-rules-engine:${rootProject.extra[ " smithyVersion" ]} " )
33
- api(" software.amazon.smithy:smithy-waiters:${rootProject.extra[ " smithyVersion" ]} " )
34
- implementation(" software.amazon.smithy:smithy-protocol-test-traits:${rootProject.extra[ " smithyVersion" ]} " )
34
+ api(" software.amazon.smithy:smithy-codegen-core:$smithyVersion " )
35
+ api(" software.amazon.smithy:smithy-rules-engine:$smithyVersion " )
36
+ api(" software.amazon.smithy:smithy-waiters:$smithyVersion " )
37
+ implementation(" software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion " )
35
38
}
You can’t perform that action at this time.
0 commit comments