I wish if it were possible to add a task to a group (or to multiple groups) and then I could declare in the script that this group depends on a certain task or a group or a task depends on this group. It would be benefical in situations like this: When releasing there are numerous tasks doing modifications and there are certain conditions which must be met before releasing. It would be nice if checking those conditions would be easy to do before actually doing anything doing adjustment needed to be rollbacked on failure. So in this case the tasks executed when releasing could be put into a group like “release-write”. This way, I could declare “release-write” dependency for tasks checking if the conditions required for the release are met.
I imagine that when depending on a group, it does not execute all tasks of that group but if a task is otherwise executed and belongs to the group then executed before the task depending on the group.
For clarification: I don’t mean the groups currently in gradle which are for displaying tasks to the user grouped.