File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,21 @@ tasks["jar"].enabled = false
5959tasks[" smithyBuild" ].enabled = false
6060
6161val buildSdk = tasks.register<SmithyBuildTask >(" buildSdk" ) {
62- models.set(files(" model/" ))
63- smithyBuildConfigs.set(files(" smithy-build.json" ))
62+ val clientNameProp: String? by project
63+ if (! (clientNameProp?.isEmpty() ? : true )) {
64+ smithyBuildConfigs.set(files(" smithy-build-" + clientNameProp + " .json" ))
65+ } else {
66+ smithyBuildConfigs.set(files(" smithy-build.json" ))
67+ }
6468}
6569
6670configure< software.amazon.smithy.gradle.SmithyExtension > {
6771 val clientNameProp: String? by project
6872 if (! (clientNameProp?.isEmpty() ? : true )) {
69- smithyBuildConfigs = files(" smithy-build-" + clientNameProp + " .json" )
70- outputDirectory = file(" build-single/" + clientNameProp)
73+ smithyBuildConfigs.set(files(" smithy-build-" + clientNameProp + " .json" ))
74+ outputDirectory.set(file(" build-single/" + clientNameProp))
75+ } else {
76+ smithyBuildConfigs.set(files(" smithy-build.json" ))
7177 }
7278}
7379
You can’t perform that action at this time.
0 commit comments