Skip to content

Commit 0d2c65b

Browse files
authored
chore: allow builds to use a different output build dir (#565)
1 parent 4df4a27 commit 0d2c65b

File tree

1 file changed

+4
-0
lines changed
  • gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks

1 file changed

+4
-0
lines changed

gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ internal fun Project.registerCodegenTasks() {
5656
classpath = codegenConfig
5757
smithyBuildConfigs = files(smithyBuildConfig)
5858

59+
// use the actual project build directory rather than the erroneous default smithy uses which defaults is
60+
// correct in the default case but doesn't respect the buildDir setting being changed
61+
outputDirectory = buildDir.resolve("smithyprojections/${project.name}")
62+
5963
inputs.file(smithyBuildConfig)
6064

6165
val extension = project.codegenExtension

0 commit comments

Comments
 (0)