Skip to content

Commit

Permalink
fix parallel task execution issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Sep 22, 2024
1 parent e13e9fc commit afc5168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class GradleGenerator : KotlinIntegration {
write("description = #S", "Creates smoke tests jar")
write("group = #S", "application")
write("dependsOn(build)")
write("mustRunAfter(build)")
withBlock("manifest {", "}") {
write("attributes[#S] = #S", "Main-Class", "${ctx.settings.pkg.name}.smoketests.SmokeTestsKt")
}
Expand Down Expand Up @@ -133,6 +134,7 @@ class GradleGenerator : KotlinIntegration {
write("description = #S", "Runs smoke tests jar")
write("group = #S", "verification")
write("dependsOn(tasks.getByName(#S))", "smokeTestJar")
write("mustRunAfter(tasks.getByName(#S))", "smokeTestJar")
emptyLine()
write("val sdkVersion: String by project")
write("val jarFile = file(#S)", "build/libs/$jarName")
Expand Down
1 change: 1 addition & 0 deletions tests/codegen/smoke-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ fun configureTasks() {
showCauses = true
showStackTraces = true
}
mustRunAfter(tasks.getByName("stageServices"))
}
}

Expand Down

0 comments on commit afc5168

Please sign in to comment.