gradle-task-tree
gradle-task-tree copied to clipboard
Feature Request: show tree of all tasks
I'd love to see a tree view of all tasks offered in a project, rather than only the tree of one task.
Note that the plugin can show multiple trees.
If you run the command with multiple tasks, you'll get a task-tree for each specified task.
For example running the following:
gradle test assemble javadoc taskTree
would print a task-tree for each of the tasks: test
, assemble
and javadoc
.
It might be useful to get task-trees for each available task in the project without having to explicitly declare each task name. I will look into implementing this. However, I think this would necessitate a major change to the way the plugin works, so I'll have to find time for this.
What I'm thinking is that maybe running gradle taskTree
(without specifying any tasks) should print a task-tree for each available task.
I actually don't think this feature has much demand. Usually when someone wants to see a dependency tree for a task, they are interested in a specific task (or a few tasks): the task they usually run while developing or that their CI runs when building their project.
Printing a tree for every available task in the project would produce a very big output but would not be more useful.
I'm going to leave this issue open for a while to see if after all there is more demand for this. However, I'm not going to spend time on it unless I'm convinced more people are interested and that it's a valid use-case.
Please vote for this if you find this feature useful. Also please explain in what scenario this would be useful for you.
You should be able to pare down the output very quickly by omitting tasks which are reachable from others. This way the entire graph is represented but through a minimal subset of root tasks.
I was hoping to find which tasks depend on a given task, which is something that the full task tree would get me.