Skip to content

Instantly share code, notes, and snippets.

@leruaa
Last active November 20, 2015 17:32
Show Gist options
  • Save leruaa/e25858ba35b1829b7976 to your computer and use it in GitHub Desktop.
Save leruaa/e25858ba35b1829b7976 to your computer and use it in GitHub Desktop.
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