Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Dec 22, 2023
1 parent 0b738ca commit 352226d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SmithyBuildPlugin : Plugin<Project> {
resolvedCliClasspath.set(codegenConfig)
runtimeClasspath.set(codegenConfig)
buildClasspath.set(codegenConfig)
smithyBuildConfigs.set(generateSmithyBuild.get().outputs.files)
smithyBuildConfigs.set(project.files(generateSmithyBuild))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ package aws.sdk.kotlin.gradle.codegen.tasks
import aws.sdk.kotlin.gradle.codegen.dsl.SmithyProjection
import aws.sdk.kotlin.gradle.codegen.dsl.withObjectMember
import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFile
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.*
import software.amazon.smithy.model.node.Node

Expand All @@ -31,8 +30,13 @@ abstract class GenerateSmithyBuild : DefaultTask() {
* Defaults to the project build directory.
*/
@get:OutputFile
public val smithyBuildConfig: Provider<RegularFile> =
project.layout.buildDirectory.file(SMITHY_BUILD_CONFIG_FILENAME)
public abstract val smithyBuildConfig: RegularFileProperty

init {
smithyBuildConfig.convention(
project.layout.buildDirectory.file(SMITHY_BUILD_CONFIG_FILENAME),
)
}

/**
* Generate `smithy-build.json`
Expand Down

0 comments on commit 352226d

Please sign in to comment.