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(@Nullable task: @Nullable Task): Set<out Task>(source)

Determines the dependencies for the given Task. This method is called when Gradle assembles the task execution graph for a build. This occurs after all the projects have been evaluated, and before any task execution begins.

Return

The tasks which the given task depends on. Returns an empty set if the task has no dependencies.

Since

0.7

Parameters

task

The task to determine the dependencies for.