Skip to content

Instantly share code, notes, and snippets.

@s1rius
s1rius / PrintTaskDetail.gradle
Last active August 16, 2023 06:57
Print task input and output files when execute
gradle.taskGraph.afterTask { task ->
StringBuffer taskDetail = new StringBuffer()
taskDetail << """---
name: $task.name group: $task.group $task.description
inputs:
"""
task.inputs.files.each { it ->
taskDetail << "${it.absolutePath} \n"
}