diff --git a/custom-trait-examples/custom-annotation-trait/build.gradle.kts b/custom-trait-examples/custom-annotation-trait/build.gradle.kts index 57a74b0..e4f207d 100644 --- a/custom-trait-examples/custom-annotation-trait/build.gradle.kts +++ b/custom-trait-examples/custom-annotation-trait/build.gradle.kts @@ -3,7 +3,7 @@ description = "A package used to define an annotation trait" plugins { `java-library` id("com.github.spotbugs").version("4.7.1") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } java { diff --git a/custom-trait-examples/custom-string-trait/build.gradle.kts b/custom-trait-examples/custom-string-trait/build.gradle.kts index e28b022..afc1b97 100644 --- a/custom-trait-examples/custom-string-trait/build.gradle.kts +++ b/custom-trait-examples/custom-string-trait/build.gradle.kts @@ -4,7 +4,7 @@ description = "Package for a custom Smithy string trait" plugins { `java-library` id("com.github.spotbugs").version("4.7.3") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } java { @@ -62,4 +62,4 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.0") testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.0") testImplementation("org.junit.jupiter:junit-jupiter-params:5.4.0") -} \ No newline at end of file +} diff --git a/custom-trait-examples/custom-structure-trait/build.gradle.kts b/custom-trait-examples/custom-structure-trait/build.gradle.kts index 1a282e0..4dad887 100644 --- a/custom-trait-examples/custom-structure-trait/build.gradle.kts +++ b/custom-trait-examples/custom-structure-trait/build.gradle.kts @@ -4,7 +4,7 @@ description = "Custom Smithy structure trait with multiple inputs" plugins { `java-library` id("com.github.spotbugs").version("4.7.3") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } java { @@ -57,4 +57,4 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.0") testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.0") testImplementation("org.junit.jupiter:junit-jupiter-params:5.4.0") -} \ No newline at end of file +} diff --git a/custom-trait-examples/custom-structure-trait/model/custom-trait.smithy b/custom-trait-examples/custom-structure-trait/model/custom-trait.smithy index 41b3822..10b4c66 100644 --- a/custom-trait-examples/custom-structure-trait/model/custom-trait.smithy +++ b/custom-trait-examples/custom-structure-trait/model/custom-trait.smithy @@ -5,7 +5,9 @@ namespace io.smithy.example @trait( selector: "resource" breakingChanges: [ - {change: "presence"} + { + change: "presence" + } ] ) structure resourceMetadata { diff --git a/custom-trait-examples/integ/custom-annotation-trait-test/build.gradle.kts b/custom-trait-examples/integ/custom-annotation-trait-test/build.gradle.kts index 93811d7..5e3e1ef 100644 --- a/custom-trait-examples/integ/custom-annotation-trait-test/build.gradle.kts +++ b/custom-trait-examples/integ/custom-annotation-trait-test/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } diff --git a/custom-trait-examples/integ/custom-string-trait-test/build.gradle.kts b/custom-trait-examples/integ/custom-string-trait-test/build.gradle.kts index 8ef75ac..ac2d261 100644 --- a/custom-trait-examples/integ/custom-string-trait-test/build.gradle.kts +++ b/custom-trait-examples/integ/custom-string-trait-test/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } diff --git a/custom-trait-examples/integ/custom-structure-trait-test/build.gradle.kts b/custom-trait-examples/integ/custom-structure-trait-test/build.gradle.kts index 5137bcd..e94b7ac 100644 --- a/custom-trait-examples/integ/custom-structure-trait-test/build.gradle.kts +++ b/custom-trait-examples/integ/custom-structure-trait-test/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } // The test project doesn't produce a JAR. diff --git a/custom-trait-examples/integ/custom-structure-trait-test/model/main.smithy b/custom-trait-examples/integ/custom-structure-trait-test/model/main.smithy index 4211d90..b9ab37c 100644 --- a/custom-trait-examples/integ/custom-structure-trait-test/model/main.smithy +++ b/custom-trait-examples/integ/custom-structure-trait-test/model/main.smithy @@ -10,7 +10,7 @@ use io.smithy.example#resourceMetadata associatedStructures: [ForecastStruct] ) resource Forecast { - identifiers: {forecastId: ForecastId} + identifiers: { forecastId: ForecastId } } string ForecastId diff --git a/gradle.properties b/gradle.properties index 9e407cf..161cc64 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ smithyVersion=1.44.0 -smithyGradleVersion=0.9.0 +smithyGradleVersion=0.10.0 diff --git a/linting-and-validation-examples/common-linting-configuration/build.gradle.kts b/linting-and-validation-examples/common-linting-configuration/build.gradle.kts index 3e6343d..5a943df 100644 --- a/linting-and-validation-examples/common-linting-configuration/build.gradle.kts +++ b/linting-and-validation-examples/common-linting-configuration/build.gradle.kts @@ -2,7 +2,7 @@ description = "A package used to share a common linting configuration between sm plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } repositories { diff --git a/linting-and-validation-examples/common-linting-configuration/model/validators.smithy b/linting-and-validation-examples/common-linting-configuration/model/validators.smithy index 95b43a1..1d4dc0f 100644 --- a/linting-and-validation-examples/common-linting-configuration/model/validators.smithy +++ b/linting-and-validation-examples/common-linting-configuration/model/validators.smithy @@ -3,8 +3,14 @@ $version: "2.0" // The validators used here are either built-in linters (see: https://smithy.io/2.0/guides/model-linters.html#linters-in-smithy-linters) // or they are from the following guide:https://smithy.io/2.0/guides/model-validation-examples.html metadata validators = [ - {name: "AbbreviationName", severity: "WARNING"} - {name: "CamelCase", severity: "WARNING"} + { + name: "AbbreviationName" + severity: "WARNING" + } + { + name: "CamelCase" + severity: "WARNING" + } { name: "MissingSensitiveTrait" severity: "WARNING" diff --git a/linting-and-validation-examples/custom-validator/build.gradle.kts b/linting-and-validation-examples/custom-validator/build.gradle.kts index a53c4df..fd01a6c 100644 --- a/linting-and-validation-examples/custom-validator/build.gradle.kts +++ b/linting-and-validation-examples/custom-validator/build.gradle.kts @@ -4,7 +4,7 @@ description = "Creates a custom Smithy model validator" plugins { `java-library` id("com.github.spotbugs").version("4.7.3") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } java { diff --git a/linting-and-validation-examples/integ/common-linting-configuration-test/build.gradle.kts b/linting-and-validation-examples/integ/common-linting-configuration-test/build.gradle.kts index 3bcf917..c0563bf 100644 --- a/linting-and-validation-examples/integ/common-linting-configuration-test/build.gradle.kts +++ b/linting-and-validation-examples/integ/common-linting-configuration-test/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } // The test project doesn't produce a JAR. diff --git a/linting-and-validation-examples/integ/custom-linter-test/build.gradle.kts b/linting-and-validation-examples/integ/custom-linter-test/build.gradle.kts index c4297aa..05c50c4 100644 --- a/linting-and-validation-examples/integ/custom-linter-test/build.gradle.kts +++ b/linting-and-validation-examples/integ/custom-linter-test/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } diff --git a/linting-and-validation-examples/integ/custom-validator-test/build.gradle.kts b/linting-and-validation-examples/integ/custom-validator-test/build.gradle.kts index 9b812e6..d2fa299 100644 --- a/linting-and-validation-examples/integ/custom-validator-test/build.gradle.kts +++ b/linting-and-validation-examples/integ/custom-validator-test/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } diff --git a/quickstart-examples/quickstart-gradle/build.gradle.kts b/quickstart-examples/quickstart-gradle/build.gradle.kts index 3732f2b..09353dd 100644 --- a/quickstart-examples/quickstart-gradle/build.gradle.kts +++ b/quickstart-examples/quickstart-gradle/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } repositories { diff --git a/shared-model-examples/common-shapes/build.gradle.kts b/shared-model-examples/common-shapes/build.gradle.kts index 3edb9a1..8e2b663 100644 --- a/shared-model-examples/common-shapes/build.gradle.kts +++ b/shared-model-examples/common-shapes/build.gradle.kts @@ -3,7 +3,7 @@ description = "A package used to share common shapes between smithy projects" plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } repositories { diff --git a/shared-model-examples/common-shapes/model/validators.smithy b/shared-model-examples/common-shapes/model/validators.smithy index f972ea2..4d8e48d 100644 --- a/shared-model-examples/common-shapes/model/validators.smithy +++ b/shared-model-examples/common-shapes/model/validators.smithy @@ -1,11 +1,21 @@ $version: "2.0" metadata validators = [ - {name: "AbbreviationName"} - {name: "CamelCase"} - {name: "NoninclusiveTerms"} - {name: "RepeatedShapeName"} - {name: "ShouldHaveUsedTimestamp"} + { + name: "AbbreviationName" + } + { + name: "CamelCase" + } + { + name: "NoninclusiveTerms" + } + { + name: "RepeatedShapeName" + } + { + name: "ShouldHaveUsedTimestamp" + } // Require range for integers { name: "EmitEachSelector" diff --git a/shared-model-examples/integ/build.gradle.kts b/shared-model-examples/integ/build.gradle.kts index a66eeca..c745ab8 100644 --- a/shared-model-examples/integ/build.gradle.kts +++ b/shared-model-examples/integ/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("0.9.0") + id("software.amazon.smithy.gradle.smithy-jar").version("0.10.0") } // The test project doesn't produce a JAR.