Skip to content

Commit

Permalink
Fix test build order
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 16, 2023
1 parent dd8bdb8 commit b203a7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/example-desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks.named("clean") {
}
}

tasks.register<GradleBuild>("prepareTest") {
val tasksOrder = tasks.register<GradleBuild>("prepareTest") {
tasks = listOf(
":example:example-build:clean",
":example:example-core:clean",
Expand All @@ -25,5 +25,6 @@ tasks.register<GradleBuild>("prepareTest") {
}

tasks.named("test") {
dependsOn(tasks.named("prepareTest"))
dependsOn(tasksOrder)
mustRunAfter(tasksOrder)
}

0 comments on commit b203a7d

Please sign in to comment.