Skip to content

Commit 6dafec4

Browse files
authored
Remove unncessary test compilation when not running test-related tasks (#4054)
Implicit task dependency resolution was incorrectly resolved with `dependsOn` rather than `mustRunAfter`, which introduced a task dependency rather than task ordering
1 parent 75a4cae commit 6dafec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/kotlin/toolkit-intellij-subplugin.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ tasks.withType<RunIdeForUiTestTask>().all {
244244
// weird implicit dependency issue, maybe with how the task graph works?
245245
// or because tests are on the ide classpath for some reason?
246246
tasks.named("classpathIndexCleanup") {
247-
dependsOn(tasks.named("compileIntegrationTestKotlin"))
247+
mustRunAfter(tasks.named("compileIntegrationTestKotlin"))
248248
}
249249

250250
configurations.instrumentedJar.configure {

0 commit comments

Comments
 (0)