1GRADLE(1) Gradle GRADLE(1)
2
3
4
6 gradle - build automation tool
7
9 gradle [option...] [task...]
10
12 Gradle is build automation evolved. Gradle can automate the building,
13 testing, publishing, deployment and more of software packages or other
14 types of projects such as generated static websites, generated
15 documentation or indeed anything else.
16
17 Gradle combines the power and flexibility of Ant with the dependency
18 management and conventions of Maven into a more effective way to build.
19 Powered by a Groovy DSL and packed with innovation, Gradle provides a
20 declarative way to describe all kinds of builds through sensible
21 defaults. Gradle is quickly becoming the build system of choice for
22 many open source projects, leading edge enterprises and legacy
23 automation challenges.
24
26 -?, -h, --help
27 Shows help message.
28
29 -a, --no-rebuild
30 Do not rebuild project dependencies.
31
32 -b, --build-file
33 Specifies the build file.
34
35 -c, --settings-file
36 Specifies the settings file.
37
38 --configure-on-demand
39 Only relevant projects are configured in this build run. This means
40 faster build for large multi-project builds. [incubating]
41
42 --console
43 Specifies which type of console output to generate. Values are
44 plain, auto (default) or rich.
45
46 --continue
47 Continues task execution after a task failure.
48
49 -D, --system-prop
50 Set system property of the JVM (e.g. -Dmyprop=myvalue).
51
52 -d, --debug
53 Log in debug mode (includes normal stacktrace).
54
55 --daemon
56 Uses the Gradle daemon to run the build. Starts the daemon if not
57 running.
58
59 --foreground
60 Starts the Gradle daemon in the foreground. [incubating]
61
62 -g, --gradle-user-home
63 Specifies the gradle user home directory.
64
65 --gui
66 Launches the Gradle GUI.
67
68 -I, --init-script
69 Specifies an initialization script.
70
71 -i, --info
72 Set log level to info.
73
74 -m, --dry-run
75 Runs the builds with all task actions disabled.
76
77 --max-workers
78 Configure the number of concurrent workers Gradle is allowed to
79 use. [incubating]
80
81 --no-color
82 Do not use color in the console output. [deprecated - use
83 --console=plain instead]
84
85 --no-daemon
86 Do not use the Gradle daemon to run the build.
87
88 --offline
89 The build should operate without accessing network resources.
90
91 -P, --project-prop
92 Set project property for the build script (e.g. -Pmyprop=myvalue).
93
94 -p, --project-dir
95 Specifies the start directory for Gradle. Defaults to current
96 directory.
97
98 --parallel
99 Build projects in parallel. Gradle will attempt to determine the
100 optimal number of executor threads to use. [incubating]
101
102 --parallel-threads
103 Build projects in parallel, using the specified number of executor
104 threads. [deprecated - Please use --parallel, optionally in
105 conjunction with --max-workers.] [incubating]
106
107 --profile
108 Profiles build execution time and generates a report in the
109 <build_dir>/reports/profile directory.
110
111 --project-cache-dir
112 Specifies the project-specific cache directory. Defaults to .gradle
113 in the root project directory.
114
115 -q, --quiet
116 Log errors only.
117
118 --recompile-scripts
119 Force build script recompiling.
120
121 --refresh-dependencies
122 Refresh the state of dependencies.
123
124 --rerun-tasks
125 Ignore previously cached task results.
126
127 -S, --full-stacktrace
128 Print out the full (very verbose) stacktrace for all exceptions.
129
130 -s, --stacktrace
131 Print out the stacktrace for all exceptions.
132
133 --stop
134 Stops the Gradle daemon if it is running.
135
136 -t, --continuous
137 Enables continuous build. Gradle does not exit and will re-execute
138 tasks when task file inputs change. [incubating]
139
140 -u, --no-search-upward
141 Don’t search in parent folders for a settings.gradle file.
142
143 -v, --version
144 Print version info.
145
146 -x, --exclude-task
147 Specify a task to be excluded from execution.
148
150 Official documentation: http://gradle.org/documentation/
151
152
153
154GRADLE 04/18/2019 GRADLE(1)