Created
November 4, 2021 03:55
-
-
Save bennyhuo/363c480340a8b83c190c464987d0aa8c to your computer and use it in GitHub Desktop.
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 << """"------------- | |
name:$task.name group:$task.group : $task.description | |
conv:$task.convention.plugins | |
""" | |
taskDetails << "inputs:\n" | |
task.inputs.files.each { it -> | |
taskDetails << "${it.absolutePath}\n" | |
} | |
taskDetails << "outputs:\n" | |
task.outputs.files.each { it -> | |
taskDetails << "${it.absolutePath}\n" | |
} | |
taskDetails << "dependencies: \n" | |
task.taskDependencies.getDependencies(task).each { | |
taskDetails << "$it\n" | |
} | |
taskDetails << "mustRunAfter: \n" | |
task.mustRunAfter.getDependencies(task).each { | |
taskDetails << "$it\n" | |
} | |
taskDetails << "shouldRunAfter: \n" | |
task.shouldRunAfter.getDependencies(task).each { | |
taskDetails << "$it\n" | |
} | |
taskDetails << "finalizedBy: \n" | |
task.finalizedBy.getDependencies(task).each { | |
taskDetails << "$it\n" | |
} | |
taskDetails << "-------------" | |
println taskDetails | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment