diff --git a/CHANGELOG.md b/CHANGELOG.md index 4be76a2..9e6787a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Smithy Gradle Plugin Changelog +## 1.0.1 (2024-07-16) + +### Features +* Updated version sync script to handle newly added `smithy-trait-package` plugin. ([#142](https://github.com/smithy-lang/smithy-gradle-plugin/pull/142)) +* Added a convenience method to `SmithyBuild` task to resolve plugin projection directories. ([#140](https://github.com/smithy-lang/smithy-gradle-plugin/pull/140)) +* Added a new gradle plugin `smithy-trait-package` to enable users to quickly create packages for custom Smithy traits. ([#138](https://github.com/smithy-lang/smithy-gradle-plugin/pull/138), [#139](https://github.com/smithy-lang/smithy-gradle-plugin/pull/139), [#141](https://github.com/smithy-lang/smithy-gradle-plugin/pull/141)) + ## 1.0.0 (2024-03-26) ### Features diff --git a/README.md b/README.md index 1a885ab..c0da7c4 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ This plugin can be applied to a project as follows: ```kotlin // build.gradle.kts plugins { - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } ``` However, no tasks will be created unless. @@ -72,7 +72,7 @@ The `smithy-jar` plugin must be used with another plugin that creates a `jar` ta // build.gradle.kts plugins { id("java-library") // creates jar task - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } ``` diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/examples/base-plugin/failure-cases/conflicting-output-dir-configs/build.gradle.kts b/examples/base-plugin/failure-cases/conflicting-output-dir-configs/build.gradle.kts index bcaea63..9bb3be7 100644 --- a/examples/base-plugin/failure-cases/conflicting-output-dir-configs/build.gradle.kts +++ b/examples/base-plugin/failure-cases/conflicting-output-dir-configs/build.gradle.kts @@ -3,7 +3,7 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/failure-cases/forbid-dependency-resolution-fork/build.gradle.kts b/examples/base-plugin/failure-cases/forbid-dependency-resolution-fork/build.gradle.kts index 4bc620d..5c6fb3d 100644 --- a/examples/base-plugin/failure-cases/forbid-dependency-resolution-fork/build.gradle.kts +++ b/examples/base-plugin/failure-cases/forbid-dependency-resolution-fork/build.gradle.kts @@ -4,7 +4,7 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/failure-cases/forbid-dependency-resolution-no-fork/build.gradle.kts b/examples/base-plugin/failure-cases/forbid-dependency-resolution-no-fork/build.gradle.kts index 692f457..a496ba5 100644 --- a/examples/base-plugin/failure-cases/forbid-dependency-resolution-no-fork/build.gradle.kts +++ b/examples/base-plugin/failure-cases/forbid-dependency-resolution-no-fork/build.gradle.kts @@ -3,7 +3,7 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/failure-cases/forbid-implicit-no-build-config/build.gradle.kts b/examples/base-plugin/failure-cases/forbid-implicit-no-build-config/build.gradle.kts index 2db8b85..e4e4b73 100644 --- a/examples/base-plugin/failure-cases/forbid-implicit-no-build-config/build.gradle.kts +++ b/examples/base-plugin/failure-cases/forbid-implicit-no-build-config/build.gradle.kts @@ -1,6 +1,6 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/includes-in-sourceset/build.gradle.kts b/examples/base-plugin/includes-in-sourceset/build.gradle.kts index 3955936..dc9592d 100644 --- a/examples/base-plugin/includes-in-sourceset/build.gradle.kts +++ b/examples/base-plugin/includes-in-sourceset/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } sourceSets { diff --git a/examples/base-plugin/output-directory-config/build.gradle.kts b/examples/base-plugin/output-directory-config/build.gradle.kts index 488dabf..e57a8c5 100644 --- a/examples/base-plugin/output-directory-config/build.gradle.kts +++ b/examples/base-plugin/output-directory-config/build.gradle.kts @@ -4,7 +4,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/output-directory-with-projection/build.gradle.kts b/examples/base-plugin/output-directory-with-projection/build.gradle.kts index 2a7d2d9..fa9ac11 100644 --- a/examples/base-plugin/output-directory-with-projection/build.gradle.kts +++ b/examples/base-plugin/output-directory-with-projection/build.gradle.kts @@ -3,7 +3,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } diff --git a/examples/base-plugin/output-directory/build.gradle.kts b/examples/base-plugin/output-directory/build.gradle.kts index d3065c8..8b1e46f 100644 --- a/examples/base-plugin/output-directory/build.gradle.kts +++ b/examples/base-plugin/output-directory/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/scans-for-cli-version/build.gradle.kts b/examples/base-plugin/scans-for-cli-version/build.gradle.kts index bb5a897..a68a60a 100644 --- a/examples/base-plugin/scans-for-cli-version/build.gradle.kts +++ b/examples/base-plugin/scans-for-cli-version/build.gradle.kts @@ -3,7 +3,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } repositories { diff --git a/examples/base-plugin/smithy-build-task/build.gradle.kts b/examples/base-plugin/smithy-build-task/build.gradle.kts index 370e273..144ce88 100644 --- a/examples/base-plugin/smithy-build-task/build.gradle.kts +++ b/examples/base-plugin/smithy-build-task/build.gradle.kts @@ -6,7 +6,7 @@ import software.amazon.smithy.gradle.tasks.SmithyBuildTask // and the classpath used when building. plugins { - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } val doIt = tasks.register("doit") { diff --git a/examples/base-plugin/uses-explicitly-set-cli-version/build.gradle.kts b/examples/base-plugin/uses-explicitly-set-cli-version/build.gradle.kts index 77e7d96..3c60cdf 100644 --- a/examples/base-plugin/uses-explicitly-set-cli-version/build.gradle.kts +++ b/examples/base-plugin/uses-explicitly-set-cli-version/build.gradle.kts @@ -3,7 +3,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-base").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-base").version("1.0.1") } dependencies { diff --git a/examples/jar-plugin/adds-tags/build.gradle.kts b/examples/jar-plugin/adds-tags/build.gradle.kts index 75fa773..ecf2138 100644 --- a/examples/jar-plugin/adds-tags/build.gradle.kts +++ b/examples/jar-plugin/adds-tags/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } group = "software.amazon.smithy" diff --git a/examples/jar-plugin/build-dependencies/internal-model/build.gradle.kts b/examples/jar-plugin/build-dependencies/internal-model/build.gradle.kts index 3bae0d1..3bae8cb 100644 --- a/examples/jar-plugin/build-dependencies/internal-model/build.gradle.kts +++ b/examples/jar-plugin/build-dependencies/internal-model/build.gradle.kts @@ -2,7 +2,7 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/build-dependencies/service/build.gradle.kts b/examples/jar-plugin/build-dependencies/service/build.gradle.kts index 9fdf958..3b795f4 100644 --- a/examples/jar-plugin/build-dependencies/service/build.gradle.kts +++ b/examples/jar-plugin/build-dependencies/service/build.gradle.kts @@ -2,7 +2,7 @@ plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/custom-trait/consumer/build.gradle.kts b/examples/jar-plugin/custom-trait/consumer/build.gradle.kts index 6df8a43..97df74d 100644 --- a/examples/jar-plugin/custom-trait/consumer/build.gradle.kts +++ b/examples/jar-plugin/custom-trait/consumer/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } diff --git a/examples/jar-plugin/custom-trait/custom-string-trait/build.gradle.kts b/examples/jar-plugin/custom-trait/custom-string-trait/build.gradle.kts index e6b48d9..4f2d1a5 100644 --- a/examples/jar-plugin/custom-trait/custom-string-trait/build.gradle.kts +++ b/examples/jar-plugin/custom-trait/custom-string-trait/build.gradle.kts @@ -1,7 +1,7 @@ // This package defines a custom trait for use in other models plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/disable-jar/build.gradle.kts b/examples/jar-plugin/disable-jar/build.gradle.kts index 8e451b6..34328b7 100644 --- a/examples/jar-plugin/disable-jar/build.gradle.kts +++ b/examples/jar-plugin/disable-jar/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/failure-cases/invalid-projection/build.gradle.kts b/examples/jar-plugin/failure-cases/invalid-projection/build.gradle.kts index fc52e40..1d09bf5 100644 --- a/examples/jar-plugin/failure-cases/invalid-projection/build.gradle.kts +++ b/examples/jar-plugin/failure-cases/invalid-projection/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/failure-cases/missing-runtime-dependency/build.gradle.kts b/examples/jar-plugin/failure-cases/missing-runtime-dependency/build.gradle.kts index 13ad193..3239d02 100644 --- a/examples/jar-plugin/failure-cases/missing-runtime-dependency/build.gradle.kts +++ b/examples/jar-plugin/failure-cases/missing-runtime-dependency/build.gradle.kts @@ -5,7 +5,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/kotlin-jvm-project/build.gradle.kts b/examples/jar-plugin/kotlin-jvm-project/build.gradle.kts index 8899cec..1214130 100644 --- a/examples/jar-plugin/kotlin-jvm-project/build.gradle.kts +++ b/examples/jar-plugin/kotlin-jvm-project/build.gradle.kts @@ -2,7 +2,7 @@ plugins { kotlin("jvm") version "1.9.23" - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/multi-project/consumer/build.gradle.kts b/examples/jar-plugin/multi-project/consumer/build.gradle.kts index 28055b5..0a139a4 100644 --- a/examples/jar-plugin/multi-project/consumer/build.gradle.kts +++ b/examples/jar-plugin/multi-project/consumer/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } dependencies { diff --git a/examples/jar-plugin/multiple-jars/build.gradle.kts b/examples/jar-plugin/multiple-jars/build.gradle.kts index 2eac2cc..6a77220 100644 --- a/examples/jar-plugin/multiple-jars/build.gradle.kts +++ b/examples/jar-plugin/multiple-jars/build.gradle.kts @@ -7,7 +7,7 @@ import software.amazon.smithy.gradle.tasks.SmithyJarStagingTask plugins { `java-library` - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } val buildTask: SmithyBuildTask = tasks.getByName("smithyBuild") diff --git a/examples/jar-plugin/multiple-sources/build.gradle.kts b/examples/jar-plugin/multiple-sources/build.gradle.kts index 66cb59b..b8a6455 100644 --- a/examples/jar-plugin/multiple-sources/build.gradle.kts +++ b/examples/jar-plugin/multiple-sources/build.gradle.kts @@ -5,7 +5,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/no-models/build.gradle.kts b/examples/jar-plugin/no-models/build.gradle.kts index 763a0e4..590bbc3 100644 --- a/examples/jar-plugin/no-models/build.gradle.kts +++ b/examples/jar-plugin/no-models/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } group = "software.amazon.smithy" diff --git a/examples/jar-plugin/projection/build.gradle.kts b/examples/jar-plugin/projection/build.gradle.kts index ec59ce4..81a8979 100644 --- a/examples/jar-plugin/projection/build.gradle.kts +++ b/examples/jar-plugin/projection/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/projects-with-tags/build.gradle.kts b/examples/jar-plugin/projects-with-tags/build.gradle.kts index 77f5104..e441dca 100644 --- a/examples/jar-plugin/projects-with-tags/build.gradle.kts +++ b/examples/jar-plugin/projects-with-tags/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/jar-plugin/scala-project/build.gradle.kts b/examples/jar-plugin/scala-project/build.gradle.kts index 41e80d1..0adf13a 100644 --- a/examples/jar-plugin/scala-project/build.gradle.kts +++ b/examples/jar-plugin/scala-project/build.gradle.kts @@ -2,7 +2,7 @@ plugins { scala - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } dependencies { diff --git a/examples/jar-plugin/source-projection/build.gradle.kts b/examples/jar-plugin/source-projection/build.gradle.kts index f564c67..b1cc4db 100644 --- a/examples/jar-plugin/source-projection/build.gradle.kts +++ b/examples/jar-plugin/source-projection/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java-library") - id("software.amazon.smithy.gradle.smithy-jar").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-jar").version("1.0.1") } repositories { diff --git a/examples/trait-package-plugin/create-simple-trait/build.gradle.kts b/examples/trait-package-plugin/create-simple-trait/build.gradle.kts index 073d9dd..a838e46 100644 --- a/examples/trait-package-plugin/create-simple-trait/build.gradle.kts +++ b/examples/trait-package-plugin/create-simple-trait/build.gradle.kts @@ -1,7 +1,7 @@ description = "Custom Smithy structure trait with multiple inputs" plugins { - id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.1") } group = "software.amazon.smithy" diff --git a/examples/trait-package-plugin/use-with-existing-trait/build.gradle.kts b/examples/trait-package-plugin/use-with-existing-trait/build.gradle.kts index 49ac713..bf00f5f 100644 --- a/examples/trait-package-plugin/use-with-existing-trait/build.gradle.kts +++ b/examples/trait-package-plugin/use-with-existing-trait/build.gradle.kts @@ -1,7 +1,7 @@ description = "Use existing" plugins { - id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.0") + id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.1") } group = "software.amazon.smithy"