Skip to content

Commit 3449c4a

Browse files
committed
Move invocation of task project outside of execution time
1 parent 055180e commit 3449c4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

smithy-typescript-codegen/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ sourceSets {
5757
}
5858

5959
tasks.register("set-dependency-versions") {
60+
val packagesDir = project.file("../packages")
61+
var smithyTsSsdkLibs = project.file("../smithy-typescript-ssdk-libs")
62+
6063
doLast {
6164
mkdir(layout.buildDirectory.dir("generated/resources/software/amazon/smithy/typescript/codegen").get().asFile)
6265
var versionsFile = layout.buildDirectory
@@ -65,7 +68,7 @@ tasks.register("set-dependency-versions") {
6568
.asFile
6669
versionsFile.printWriter().close()
6770

68-
val roots = project.file("../packages").listFiles().toMutableList() + project.file("../smithy-typescript-ssdk-libs").listFiles().toList()
71+
val roots = packagesDir.listFiles().toMutableList() + smithyTsSsdkLibs.listFiles().toList()
6972
roots.forEach { packageDir ->
7073
val packageJsonFile = File(packageDir, "package.json")
7174
if (packageJsonFile.isFile()) {

0 commit comments

Comments
 (0)