Skip to content

Commit

Permalink
Add AWS copyrightNotice to smithy-build.json codegen & to testUtil. (#…
Browse files Browse the repository at this point in the history
…1581)

Co-authored-by: Sichan Yoo <chanyoo@amazon.com>
  • Loading branch information
sichanyoo and Sichan Yoo authored Jul 2, 2024
1 parent ed43751 commit 8909caf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion codegen/protocol-test-codegen-local/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ fun generateSmithyBuild(tests: List<CodegenTest>): String {
"build": {
"rootProject": true
},
"mergeModels": false
"mergeModels": false,
"copyrightNotice": "//\n// Copyright Amazon.com Inc. or its affiliates.\n// All Rights Reserved.\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n// Code generated by smithy-swift-codegen. DO NOT EDIT!\n\n"
${it.extraConfig ?: ""}
}
}
Expand Down
3 changes: 2 additions & 1 deletion codegen/protocol-test-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ fun generateSmithyBuild(tests: List<ProtocolTest>): String {
"homepage": "https://docs.amplify.aws/",
"swiftVersion": "5.7.0",
"useInterceptors": true,
"mergeModels": false
"mergeModels": false,
"copyrightNotice": "//\n// Copyright Amazon.com Inc. or its affiliates.\n// All Rights Reserved.\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n// Code generated by smithy-swift-codegen. DO NOT EDIT!\n\n"
}
}
}"""
Expand Down
3 changes: 2 additions & 1 deletion codegen/sdk-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ fun generateSmithyBuild(services: List<AwsService>): String {
"rootProject": $buildStandaloneSdk
},
"useInterceptors": ${interceptorsServices.contains(service.packageName)},
"mergeModels": true
"mergeModels": true,
"copyrightNotice": "//\n// Copyright Amazon.com Inc. or its affiliates.\n// All Rights Reserved.\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n// Code generated by smithy-swift-codegen. DO NOT EDIT!\n\n"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class TestUtils {
.withMember("author", Node.from("Amazon Web Services"))
.withMember("gitRepo", Node.from("https://github.com/awslabs/aws-sdk-swift.git"))
.withMember("swiftVersion", Node.from("5.7"))
.withMember("copyrightNotice", Node.from("//\n// Copyright Amazon.com Inc. or its affiliates.\n// All Rights Reserved.\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n// Code generated by smithy-swift-codegen. DO NOT EDIT!\n\n"))
.build()
}
fun listFilesFromManifest(manifest: MockManifest): String {
Expand Down

0 comments on commit 8909caf

Please sign in to comment.