Skip to content

Instantly share code, notes, and snippets.

@acatinon
Last active Nov 20, 2015
Embed
What would you like to do?
Show useful infos about the running Gradle task
gradle.taskGraph.afterTask {Task task->
println " $task group:$task.group : $task.description"
println "conv:$task.convention.plugins"
println "input files:${task.inputs.getFiles().getFiles()}"
println "input properties:${task.inputs.getProperties().values().join(', ')}"
println "outputs:${task.outputs.getFiles().getFiles()}"
print "dependsOn:["
task.dependsOn.each{
if (it instanceof FileCollection)
print "${it.getAsPath()},"
else
print "$it,"
}
println "]"
println "actions:"
task.actions.each {Action action->
println "$action"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment