api / org.gradle.api.tasks / GradleBuild

GradleBuild

open class GradleBuild : ConventionTask

Executes a Gradle build.

Constructors

<init>

GradleBuild()

Functions

getBuildFile

open fun getBuildFile(): File

Returns the build file that should be used for this build. Defaults to {@value * org.gradle.api.Project#DEFAULT_BUILD_FILE} in the project directory.

getDir

open fun getDir(): File

Returns the project directory for the build. Defaults to the project directory.

getStartParameter

open fun getStartParameter(): StartParameter

Returns the full set of parameters that will be used to execute the build.

getTasks

open fun getTasks(): MutableList<String>

Returns the tasks that should be executed for this build.

setBuildFile

open fun setBuildFile(file: File): Unit
open fun setBuildFile(file: Any): Unit

Sets the build file that should be used for this build.

setDir

open fun setDir(dir: File): Unit
open fun setDir(dir: Any): Unit

Sets the project directory for the build.

setStartParameter

open fun setStartParameter(startParameter: StartParameter): Unit

Sets the full set of parameters that will be used to execute the build.

setTasks

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

Sets the tasks that should be executed for this build.