-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples to use new gradle plugin (#54)
Update examples to use version 0.8.0 of the gradle plugin.
- Loading branch information
Showing
31 changed files
with
221 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
allprojects { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ $version: "2.0" | |
namespace smithy.example | ||
|
||
@trait(selector: "structure") | ||
structure special {} | ||
structure special {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ $version: "2.0" | |
namespace io.smithy.example | ||
|
||
@trait(selector: "member") | ||
string jsonName | ||
string jsonName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 4 additions & 15 deletions
19
custom-trait-examples/integ/custom-annotation-trait-test/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
plugins { | ||
val smithyGradleVersion: String by project | ||
|
||
id("software.amazon.smithy").version(smithyGradleVersion) | ||
id("java-library") | ||
id("software.amazon.smithy.gradle.smithy-jar").version("0.8.0") | ||
} | ||
|
||
|
||
// The test project doesn't produce a JAR. | ||
tasks["jar"].enabled = false | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
buildscript { | ||
dependencies { | ||
val smithyVersion: String by project | ||
|
||
// Set the version of the CLI for the smithy gradle plugin to use when building this project | ||
dependencies { | ||
classpath("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
} | ||
} | ||
smithyCli("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
|
||
dependencies { | ||
implementation(project(":custom-trait-examples:custom-annotation-trait")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ use smithy.example#special | |
structure MyStructure { | ||
myMember: String | ||
} | ||
|
18 changes: 4 additions & 14 deletions
18
custom-trait-examples/integ/custom-string-trait-test/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
|
||
plugins { | ||
val smithyGradleVersion: String by project | ||
|
||
id("software.amazon.smithy").version(smithyGradleVersion) | ||
id("java-library") | ||
id("software.amazon.smithy.gradle.smithy-jar").version("0.8.0") | ||
} | ||
|
||
|
||
// The test project doesn't produce a JAR. | ||
tasks["jar"].enabled = false | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
buildscript { | ||
dependencies { | ||
val smithyVersion: String by project | ||
|
||
// Set the version of the CLI for the smithy gradle plugin to use when building this project | ||
dependencies { | ||
classpath("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
} | ||
} | ||
smithyCli("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
|
||
dependencies { | ||
implementation(project(":custom-trait-examples:custom-string-trait")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ structure MyStructure { | |
@jsonName("TESTING") | ||
myMember: String | ||
} | ||
|
20 changes: 4 additions & 16 deletions
20
custom-trait-examples/integ/custom-structure-trait-test/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
|
||
plugins { | ||
val smithyGradleVersion: String by project | ||
|
||
id("software.amazon.smithy").version(smithyGradleVersion) | ||
id("java-library") | ||
id("software.amazon.smithy.gradle.smithy-jar").version("0.8.0") | ||
} | ||
|
||
|
||
// The test project doesn't produce a JAR. | ||
tasks["jar"].enabled = false | ||
|
||
buildscript { | ||
dependencies { | ||
val smithyVersion: String by project | ||
|
||
// Set the version of the CLI for the smithy gradle plugin to use when building this project | ||
dependencies { | ||
classpath("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
} | ||
} | ||
smithyCli("software.amazon.smithy:smithy-cli:$smithyVersion") | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(project(":custom-trait-examples:custom-structure-trait")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.