Forrest logo
back to the gradle tool

gradle:tldr:015ef

gradle: List the main tasks.
$ gradle tasks
try on your machine

The command "gradle tasks" is used to display the list of available tasks in a Gradle project. It provides information about the tasks that can be executed from the project.

When you execute "gradle tasks" command in your terminal or command prompt from within a Gradle project directory, Gradle will scan the project build files (such as build.gradle or settings.gradle) and display a list of tasks along with their descriptions.

Tasks in Gradle are defined in build scripts and they represent a unit of work that can be executed. They can be executed individually or as part of a build process. The "gradle tasks" command helps you to understand the available tasks and their purpose, helping you to determine which tasks are suitable for executing, based on your project's requirements.

The output of the "gradle tasks" command typically includes the task name, its description, and any other relevant information about its dependencies or configuration. It serves as a quick reference to know what tasks can be executed and how they contribute to the build process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gradle tool