In my build I just added a couple of grouping or aggregate tasks (a task who exists only to group the execution of other tasks). One of these tasks is named “generateSources”. Now, this is a multi-project build and “generateSources” is defined in the subprojects closure. Additionally each subproject can add additional dependencies to “generateSources”.
What I’d also like is to add a “regenerateSources” task. Ideally, I’d like to define this task to simply go through the dependencies defined on “generateSources” and perform a “clean” on each of its dependencies and then execute “generateSources”.
Is that in any way possible?