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.

setTasks

open fun setTasks(tasks: List<String>)(source)

Sets the tasks that should be executed for this build.

Since

4.0

Parameters

tasks

The task names. May be empty or null to use the default tasks for the build.


open fun setTasks(tasks: Collection<String>)(source)

Sets the tasks that should be executed for this build.

Since

0.9

Parameters

tasks

The task names. May be empty or null to use the default tasks for the build.