Last active
November 20, 2015 17:32
-
-
Save leruaa/e25858ba35b1829b7976 to your computer and use it in GitHub Desktop.
Show useful infos about the running Gradle task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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