Given a task, what is the easiest way to find all tasks that it depends on? Looking at the Gradle docs it is still not very clear to me what is the simplest approach to do this from a plugin context.
Background: I’m trying to register some generated sources to Android build variants. It appears that the Android APIs that provide dependency info are internal:
Now I am considering a more broad approach using just Gradle to walk all tasks given a variant’s build task, in order to find cross project tasks that are created by my code gen plugin. Even better, is there a Gradle API to tell me if two tasks depend on each other?