Created
May 19, 2021 06:42
-
-
Save hsz/10e76c426fb2add0729864e7e9b9cae8 to your computer and use it in GitHub Desktop.
Run Gradle tasks in verbose mode printing all the input paths
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
// in build.gradle: apply(from = "verbose.input.files.gradle") | |
gradle.taskGraph.afterTask { task -> | |
StringBuffer taskInfo = new StringBuffer() | |
taskInfo << """"------------- | |
name:$task.name group:$task.group : $task.description | |
conv:$task.convention.plugins | |
inputs: | |
""" | |
task.inputs.files.each{ it -> | |
taskInfo << "${it.absolutePath}\n" | |
} | |
taskInfo << "outputs:\n" | |
task.outputs.files.each{ it -> | |
taskInfo << "${it.absolutePath}\n" | |
} | |
taskInfo << "-------------\n" | |
println taskInfo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment