1/**
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}