LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gradle-tasks

Display available Gradle project tasks

TLDR

List main tasks
$ gradle tasks
copy
List all tasks including internal ones
$ gradle tasks --all
copy
List with Gradle wrapper
$ ./gradlew tasks
copy
List tasks for a subproject
$ gradle :app:tasks
copy
List tasks in a specific group
$ gradle tasks --group [build]
copy
Get help on a specific task
$ gradle help --task [taskName]
copy

SYNOPSIS

gradle tasks [--all] [--group name]

DESCRIPTION

gradle tasks displays available tasks for the selected project. By default, it shows only tasks assigned to a task group that have descriptions. Use --all to include ungrouped, internal, and lifecycle tasks. Use --group to filter by a specific task group. Use gradle help --task to get detailed information about a specific task including its type, path, and options.Tasks are organized into groups such as build, verification, documentation, and help. Custom task groups defined in build scripts also appear in the output.

PARAMETERS

--all

Show all tasks including internal and lifecycle tasks without a group.
--group name
Show only tasks belonging to the specified group.
--no-report
Hide the task rule report at the bottom of the output.

SEE ALSO

gradle(1), gradle-projects(1), ant(1), mvn(1)

Copied to clipboard
Kai