mirror of https://github.com/smithy-lang/smithy-rs
Fix task dependency (#3420)
## Motivation and Context Release build was broken because `smithy-build.json` was not being generated prior to smithyBuild actually running. ## Description Fix task names ## Testing Manual patch of release tag with this fix. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
This commit is contained in:
parent
19648ace5f
commit
8db8f4b0c1
|
@ -74,7 +74,7 @@ project.registerGenerateSmithyBuildTask(rootProject, pluginName, allCodegenTests
|
|||
project.registerGenerateCargoWorkspaceTask(rootProject, pluginName, allCodegenTests, workingDirUnderBuildDir)
|
||||
project.registerGenerateCargoConfigTomlTask(layout.buildDirectory.dir(workingDirUnderBuildDir).get().asFile)
|
||||
|
||||
tasks["jar"].dependsOn("generateSmithyBuild")
|
||||
tasks["smithyBuild"].dependsOn("generateSmithyBuild")
|
||||
tasks["assemble"].finalizedBy("generateCargoWorkspace")
|
||||
|
||||
project.registerModifyMtimeTask()
|
||||
|
|
|
@ -407,7 +407,7 @@ tasks.register<ExecRustBuildTool>("generateVersionManifest") {
|
|||
}
|
||||
}
|
||||
|
||||
tasks["jar"].apply {
|
||||
tasks["smithyBuild"].apply {
|
||||
inputs.file(layout.buildDirectory.file("smithy-build.json"))
|
||||
inputs.dir(projectDir.resolve("aws-models"))
|
||||
dependsOn("generateSmithyBuild")
|
||||
|
|
|
@ -118,7 +118,7 @@ project.registerGenerateCargoConfigTomlTask(layout.buildDirectory.dir(workingDir
|
|||
|
||||
tasks["generateSmithyBuild"].inputs.property("smithy.runtime.mode", getSmithyRuntimeMode())
|
||||
|
||||
tasks["jar"].dependsOn("generateSmithyBuild")
|
||||
tasks["smithyBuild"].dependsOn("generateSmithyBuild")
|
||||
tasks["assemble"].finalizedBy("generateCargoWorkspace")
|
||||
|
||||
project.registerModifyMtimeTask()
|
||||
|
|
|
@ -95,7 +95,7 @@ project.registerGenerateSmithyBuildTask(rootProject, pluginName, allCodegenTests
|
|||
project.registerGenerateCargoWorkspaceTask(rootProject, pluginName, allCodegenTests, workingDirUnderBuildDir)
|
||||
project.registerGenerateCargoConfigTomlTask(layout.buildDirectory.dir(workingDirUnderBuildDir).get().asFile)
|
||||
|
||||
tasks["jar"].dependsOn("generateSmithyBuild")
|
||||
tasks["smithyBuild"].dependsOn("generateSmithyBuild")
|
||||
tasks["assemble"].finalizedBy("generateCargoWorkspace", "generateCargoConfigToml")
|
||||
|
||||
project.registerModifyMtimeTask()
|
||||
|
|
|
@ -116,7 +116,7 @@ tasks.register("stubs") {
|
|||
}
|
||||
}
|
||||
|
||||
tasks["jar"].dependsOn("generateSmithyBuild")
|
||||
tasks["smithyBuild"].dependsOn("generateSmithyBuild")
|
||||
tasks["assemble"].finalizedBy("generateCargoWorkspace")
|
||||
|
||||
project.registerModifyMtimeTask()
|
||||
|
|
|
@ -45,7 +45,7 @@ project.registerGenerateSmithyBuildTask(rootProject, pluginName, allCodegenTests
|
|||
project.registerGenerateCargoWorkspaceTask(rootProject, pluginName, allCodegenTests, workingDirUnderBuildDir)
|
||||
project.registerGenerateCargoConfigTomlTask(buildDir.resolve(workingDirUnderBuildDir))
|
||||
|
||||
tasks["jar"].dependsOn("generateSmithyBuild")
|
||||
tasks["smithyBuild"].dependsOn("generateSmithyBuild")
|
||||
tasks["assemble"].finalizedBy("generateCargoWorkspace")
|
||||
|
||||
project.registerModifyMtimeTask()
|
||||
|
|
Loading…
Reference in New Issue