api / org.gradle.tooling.model / Task

Task

interface Task : Launchable

Represents a task which is executable by Gradle.

Note: Task extends Launchable since 1.12.

Since
1.0-milestone-3

Functions

getDescription

abstract fun getDescription(): String

Returns the description of this task, or null if it has no description.

getGroup

abstract fun getGroup(): String

Returns the group a task belongs to.

getName

abstract fun getName(): String

Returns the name of this task. Note that the name is not necessarily a unique identifier for the task.

getPath

abstract fun getPath(): String

Returns the path of this task. This is a fully qualified unique name for this task.

Inherited Functions

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this launchable.

getProjectIdentifier

abstract fun getProjectIdentifier(): ProjectIdentifier

Returns the identifier for the Gradle project that this model originated from.

isPublic

abstract fun isPublic(): Boolean

Returns whether launchable is public or not. A public launchable is one that is considered a public 'entry point' to the build, that is interesting for an end user of the build to run.

Inheritors

GradleTask

interface GradleTask : Task

Represents a task which is executable by Gradle.