For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getAllTasks

abstract fun getAllTasks(recursive: Boolean): Map<Project, Set<Task>>(source)

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

Return

A map from project to a set of tasks.

Since

0.7

Parameters

recursive

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