blob: 3fed6e3572418b9f2b6646076969835de05288b1 [file] [log] [blame]
/**
* A gradle init script that will re-run tasks that were requested in the ./gradlew command
* see profile.sh for usages.
*/
def requestedTasks = startParameter.taskRequests.collect {
it.args
}.flatten()
taskGraph.addTaskExecutionGraphListener { graph ->
graph.beforeTask { task ->
if (requestedTasks.contains(task.path)) {
task.outputs.upToDateWhen {false}
}
}
}