# Task

interface Task : Launchable(source)

Represents a task which is executable by Gradle.

Note: `Task` extends `Launchable` since 1.12.

#### Since

1.0-milestone-3

#### Inheritors

GradleTask

## Functions

getBuildTreePath
Link copied to clipboard
@Incubating
abstract fun getBuildTreePath(): String
Returns the path of this task within the build tree.
getDescription
Link copied to clipboard
@Nullable
abstract fun getDescription(): @Nullable String
Returns the description of this task, or `null` if it has no description.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this launchable.
getGroup
Link copied to clipboard
@Nullable
abstract fun getGroup(): @Nullable String
Returns the group a task belongs to.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name of this task.
getPath
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this task.
getProjectIdentifier
Link copied to clipboard
abstract fun getProjectIdentifier(): ProjectIdentifier
Returns the identifier for the Gradle project that this model originated from.
isPublic
Link copied to clipboard
abstract fun isPublic(): Boolean
Returns whether launchable is public or not.