Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump gradle plugin version to 0.10.0 #70

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions custom-trait-examples/custom-string-trait/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ namespace io.smithy.example
@trait(
selector: "resource"
breakingChanges: [
{change: "presence"}
{
change: "presence"
}
]
)
structure resourceMetadata {
Expand Down
Original file line number Diff line number Diff line change
@@ -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")
}


Expand Down
Original file line number Diff line number Diff line change
@@ -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")
}


Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use io.smithy.example#resourceMetadata
associatedStructures: [ForecastStruct]
)
resource Forecast {
identifiers: {forecastId: ForecastId}
identifiers: { forecastId: ForecastId }
}

string ForecastId
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
smithyVersion=1.44.0
smithyGradleVersion=0.9.0
smithyGradleVersion=0.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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")
}


Expand Down
Original file line number Diff line number Diff line change
@@ -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")
}


Expand Down
2 changes: 1 addition & 1 deletion quickstart-examples/quickstart-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion shared-model-examples/common-shapes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
20 changes: 15 additions & 5 deletions shared-model-examples/common-shapes/model/validators.smithy
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shared-model-examples/integ/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading