TaskExecutionGraph is responsible for managing the execution of the Task instances which are part of the build. The
TaskExecutionGraph maintains an execution plan of tasks to be executed (or which have been executed), and you can query this plan from your build file.
You can access the
TaskExecutionGraph by calling
org.gradle.api.invocation.Gradle#getTaskGraph(). In your build file you can use
gradle.taskGraph to access it.
TaskExecutionGraph is populated only after all the projects in the build have been evaulated. It is empty before then. You can receive a notification when the graph is populated, using