From 999698dac090b36568abeedd8cc7c900b084554f Mon Sep 17 00:00:00 2001 From: Aaron J Todd Date: Thu, 31 Mar 2022 15:50:45 -0400 Subject: [PATCH] chore: allow builds to use a different output build dir --- .../kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt b/gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt index 774884f15e5..eb63c8f4d5c 100644 --- a/gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt +++ b/gradle/sdk-plugins/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/tasks/SmithyTasks.kt @@ -56,6 +56,10 @@ internal fun Project.registerCodegenTasks() { classpath = codegenConfig smithyBuildConfigs = files(smithyBuildConfig) + // use the actual project build directory rather than the erroneous default smithy uses which defaults is + // correct in the default case but doesn't respect the buildDir setting being changed + outputDirectory = buildDir.resolve("smithyprojections/${project.name}") + inputs.file(smithyBuildConfig) val extension = project.codegenExtension