Skip to content

Commit afc5168

Browse files
committed
fix parallel task execution issues
1 parent e13e9fc commit afc5168

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/GradleGenerator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class GradleGenerator : KotlinIntegration {
102102
write("description = #S", "Creates smoke tests jar")
103103
write("group = #S", "application")
104104
write("dependsOn(build)")
105+
write("mustRunAfter(build)")
105106
withBlock("manifest {", "}") {
106107
write("attributes[#S] = #S", "Main-Class", "${ctx.settings.pkg.name}.smoketests.SmokeTestsKt")
107108
}
@@ -133,6 +134,7 @@ class GradleGenerator : KotlinIntegration {
133134
write("description = #S", "Runs smoke tests jar")
134135
write("group = #S", "verification")
135136
write("dependsOn(tasks.getByName(#S))", "smokeTestJar")
137+
write("mustRunAfter(tasks.getByName(#S))", "smokeTestJar")
136138
emptyLine()
137139
write("val sdkVersion: String by project")
138140
write("val jarFile = file(#S)", "build/libs/$jarName")

tests/codegen/smoke-tests/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ fun configureTasks() {
111111
showCauses = true
112112
showStackTraces = true
113113
}
114+
mustRunAfter(tasks.getByName("stageServices"))
114115
}
115116
}
116117

0 commit comments

Comments
 (0)