This message was deleted.
# configuration-cache
s
This message was deleted.
v
Copy code
val executeAllTasks by tasks.registering {
    dependsOn(tasks)
}
thank you 1
c
isn't it recursive? (just curious)
v
Hm, good point. :-D I don't know. Worth a try though.
Yeah, doesn't work. 😞
Then
Copy code
val executeAllTasks: Provider<Task> by tasks.registering {
    dependsOn(tasks.matching { it != executeAllTasks.get() })
}
but don't let that in continuously, it completely destroys task configuration avoidance.
Ah, no, it works fine with task configuration avoidance as the lambda is only evaluated if
executeAllTasks
is going to be executed. You just have to make sure to configure some tasks or exclude them when you call it, like
dependencyInsight
which does not work without arguments or configuration, or tasks from the Gradle enterpries plugin if you run with build scan or have it applied.