api / org.gradle.api / Project / getAllTasks

getAllTasks

abstract fun getAllTasks(recursive: Boolean): MutableMap<Project, MutableSet<Task>>

Returns a map of the tasks contained in this project, and optionally its subprojects.

Parameters

recursive - If true, returns the tasks of this project and its subprojects. If false, returns the tasks of just this project.

Return
A map from project to a set of tasks.