diff --git a/codegen/gradle.properties b/codegen/gradle.properties new file mode 100644 index 00000000000..ba39af2676d --- /dev/null +++ b/codegen/gradle.properties @@ -0,0 +1 @@ +smithyVersion=1.14.0 diff --git a/codegen/protocol-test-codegen/build.gradle.kts b/codegen/protocol-test-codegen/build.gradle.kts index 483f949a668..d4cdaef6060 100644 --- a/codegen/protocol-test-codegen/build.gradle.kts +++ b/codegen/protocol-test-codegen/build.gradle.kts @@ -15,12 +15,14 @@ import software.amazon.smithy.gradle.tasks.SmithyBuild +val smithyVersion: String by project + plugins { id("software.amazon.smithy") version "0.5.3" } dependencies { - implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.14.0,1.15.0[") + implementation("software.amazon.smithy:smithy-aws-protocol-tests:$smithyVersion") implementation(project(":smithy-aws-go-codegen")) } diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index 41f06458e2f..b460f941410 100644 --- a/codegen/sdk-codegen/build.gradle.kts +++ b/codegen/sdk-codegen/build.gradle.kts @@ -18,11 +18,11 @@ import software.amazon.smithy.model.node.Node import software.amazon.smithy.model.shapes.ServiceShape import software.amazon.smithy.gradle.tasks.SmithyBuild import software.amazon.smithy.aws.traits.ServiceTrait -import kotlin.streams.toList buildscript { + val smithyVersion: String by project dependencies { - "classpath"("software.amazon.smithy:smithy-aws-traits:[1.13.1,2.0.0[") + "classpath"("software.amazon.smithy:smithy-aws-traits:$smithyVersion") } } diff --git a/codegen/smithy-aws-go-codegen/build.gradle.kts b/codegen/smithy-aws-go-codegen/build.gradle.kts index ac1631a8a7e..d713eeefcad 100644 --- a/codegen/smithy-aws-go-codegen/build.gradle.kts +++ b/codegen/smithy-aws-go-codegen/build.gradle.kts @@ -13,6 +13,8 @@ * permissions and limitations under the License. */ +val smithyVersion: String by project + plugins { `java-library` jacoco @@ -32,9 +34,9 @@ tasks.withType { } dependencies { - api("software.amazon.smithy:smithy-aws-traits:[1.14.0,2.0.0[") - api("software.amazon.smithy:smithy-aws-iam-traits:[1.14.0,2.0.0[") - api("software.amazon.smithy:smithy-aws-cloudformation-traits:[1.14.0,2.0.0[") + api("software.amazon.smithy:smithy-aws-traits:$smithyVersion") + api("software.amazon.smithy:smithy-aws-iam-traits:$smithyVersion") + api("software.amazon.smithy:smithy-aws-cloudformation-traits:$smithyVersion") api("software.amazon.smithy.go:smithy-go-codegen:0.1.0") testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.0") testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.0")