Skip to content
Latchkey

gradle tasks: Usage & Common CI Errors

Discover what you can actually run in this build.

tasks is the built-in Gradle task that lists the runnable tasks in the project, grouped (Build, Verification, Documentation, Help, etc.). It is how you discover what a build offers without reading the build scripts.

What it does

tasks prints the visible tasks with their descriptions. --all also shows tasks without a group (including dependencies between tasks), and you can run help --task <name> to see the options for a specific task.

Common usage

Terminal
./gradlew tasks
./gradlew tasks --all
./gradlew help --task build
./gradlew :module:tasks

Common error in CI (and the fix)

Symptom: "Task 'bootJar' not found in root project 'app'." Cause: the task is provided by a plugin that is not applied, or it lives in a subproject not the root. Fix: run ./gradlew tasks --all to confirm the task name and where it exists, apply the plugin that defines it (e.g. org.springframework.boot), and qualify the path like :web:bootJar when it belongs to a subproject.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →