Created
March 29, 2017 10:29
-
-
Save Khoulaiz/2a186f75fce26b77a8dcaad63e59bf41 to your computer and use it in GitHub Desktop.
Show Gradle Input and Output Files of every Task during run
This file contains hidden or 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 -> | |
StringBuffer taskDetails = new StringBuffer() | |
taskDetails << "-------------\nname:$task.name group:$task.group : $task.description\nconv:$task.convention.plugins\ninputs:" | |
task.inputs.files.each{ it -> | |
taskDetails << "${it.absolutePath}\n" | |
} | |
taskDetails << "outputs:\n" | |
task.outputs.files.each{ it -> | |
taskDetails << "${it.absolutePath}\n" | |
} | |
taskDetails << "-------------" | |
println taskDetails | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment