blob: 3fed6e3572418b9f2b6646076969835de05288b1 [file] [log] [blame]
Yigit Boyar9b2c1792021-08-26 19:26:53 -07001/**
2 * A gradle init script that will re-run tasks that were requested in the ./gradlew command
3 * see profile.sh for usages.
4 */
5def requestedTasks = startParameter.taskRequests.collect {
6 it.args
7}.flatten()
8taskGraph.addTaskExecutionGraphListener { graph ->
9 graph.beforeTask { task ->
10 if (requestedTasks.contains(task.path)) {
11 task.outputs.upToDateWhen {false}
12 }
13 }
14}