Skip to content

Instantly share code, notes, and snippets.

Last active Nov 20, 2015
What would you like to do?
Show useful infos about the running Gradle task
gradle.taskGraph.afterTask {Task task->
println " $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:["
if (it instanceof FileCollection)
print "${it.getAsPath()},"
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