api / org.gradle.api.tasks / GradleBuild / setTasks

setTasks

open fun setTasks(tasks: MutableList<String>): Unit

Sets the tasks that should be executed for this build.

Parameters

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

Since
4.0

open fun setTasks(tasks: MutableCollection<String>): Unit

Sets the tasks that should be executed for this build.

Parameters

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