Appendix A. Driving the command line

Gradle’s command-line interface (CLI) is a user’s primary tool of choice for discovering available options, inspecting the project, and controlling execution behavior by providing configuration information. It consists of three parts: discovery or help tasks, build setup tasks, and configuration input. The gradle command has the following usage:

gradle [option...] [tasks...]

A.1. Discovery tasks

Many discovery tasks provide information about the build. If you’re new to a project, they’re a good place to start discovering the configuration. They’re implemented as Gradle tasks. Every Gradle build provides the discovery tasks shown in table A.1 from the get-go.

Table A.1. Discovery tasks available to all Gradle ...

Get Gradle in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.