gradle – A powerful build system for the JVM
gradle [option…] [task…]
-?, -h, –help
–all Shows additional detail in the task listing. See “Listing tasks” in Gradle User Guide.
Set to plain to generate plain text only. This option disables all color and other rich output in the con‐
Set to auto (the default) to enable color and other rich output in the console output when the build process
is attached to a console, or to generate plain text only when not attached to a console.
Set to rich to enable color and other rich output in the console output, regardless of whether the build
process is not attached to a console. When not attached to a console, the build output will use ANSI control
characters to generate the rich output.
ti-projects. See “Configuration on demand” in Gradle User Guide.
properties” in Gradle User Guide.
–gui Launches the Gradle GUI. See “Using the Gradle Graphical User Interface” in Gradle User Guide.
tions to override caching” in Gradle User Guide.
system properties” in Gradle User Guide.
to execute” in Gradle User Guide.
to use. This option should only be used with decoupled projects (see “Decoupled Projects” in Gradle
the number of processors. This option replaces –parallel-threads when used in conjunction with
Section 4.6.8, “Profiling a build”.
-t, –continuous (incubating)
The above information is printed to the console when you execute gradle -h.
lel-threads=3. This option should only be used with decoupled projects (see “Decoupled Projects” in
Gradle User Guide). This option has been replaced by –max-workers.
The Chapter 6, “The Gradle Daemon” contains more information about the daemon. For example it includes in‐
formation how to turn on the daemon by default so that you can avoid using –daemon all the time.
Chapter 6, “The Gradle Daemon” contains more detailed information when new daemon processes are start‐
easily monitor the build execution.
always run with the daemon by default.
–stop Stops the Gradle daemon if it is running. You can only stop daemons that were started with the Gradle
The following system properties are available for the gradle command. Note that command-line options take
precedence over system properties.
The Section 11.1, “Configuring the build environment via gradle.properties” contains specific information
about Gradle configuration available via system properties.
The following environment variables are available for the gradle command. Note that command-line options and
system properties take precedence over environment variables.
properties to use for running Gradle. For example you could set GRADLE_OPTS=”-Dorg.gradle.dae‐
mon=true” to use the Gradle daemon without needing to use the –daemon option every time you run Gra‐
dle. Section 11.1, “Configuring the build environment via gradle.properties” contains more informa‐
tion about ways of configuring the daemon without using environmental variables, e.g. in more main‐
tainable and explicit way.
man 1 gradle, version gradle 3.1