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.

getDependencies

abstract fun getDependencies(task: Task): Set<Task>(source)

Returns the dependencies of a task which are part of the execution graph.

Return

The tasks. Returns an empty set if there are no dependent tasks.

Since

4.6

Throws

When this graph has not been populated or the task is not part of it.