Skip to content

Commit c7fc837

Browse files
committed
chore: allow unknown traits when generating sdk
Updates Smithy Gradle Plugin config to allow unkown traits, stopping builds from failing if there are traits in models which haven't been added as a dependency in the code generator. Usually new traits are added to existing packages, but if/when a trait is added in a new package, we will have to update the dependencies of the code generator, even if the code generator isn't actually using the trait yet.
1 parent 5696dd1 commit c7fc837

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codegen/sdk-codegen/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ tasks["smithyBuildJar"].enabled = false
5555

5656
tasks.create<SmithyBuild>("buildSdk") {
5757
addRuntimeClasspath = true
58+
allowUnknownTraits = true
5859
}
5960

6061
configure<software.amazon.smithy.gradle.SmithyExtension> {

0 commit comments

Comments
 (0)