-
-
-?, -h,--help
-
-
Shows a help message.
-
-
-a,--no-rebuild
-
-
Do not rebuild project dependencies.
-
-
--all
-
-
Shows additional detail in the task listing. See section 11.6.2, "Listing tasks".
-
-
-b,--build-file
-
-
Specifies the build file. See sections 11.5, "Selecting which build to execute".
-
-
-c,--settings-file
-
-
Specifies the settings file.
-
-
--continue
-
-
Continues task execution after a task failure.
-
-
--configure-on-demand (incubating)
-
-
Only relevant projects is configured in this build run. This means faster builds for large multi-projects. See sections 57.1.1.1, "Configuration on Demand".
-
-
-D,--system-prop
-
-
Sets a system property of the JVM, for example -Dmyprop=myvalue . See section 14.2, "Gradle Properties and System Properties".
-
-
-d,--debug
-
-
Log in debug mode (includes normal stacktrace). See Chapter, Logging.
-
-
-g,--gradle-user-home
-
-
Specifies the Gradle user home directory. The default is the .gradle directory of the user ' s home directory.
-
-
--gui
-
-
Launches the Gradle GUI. See Chapter, Using the Gradle graphical User Interface.
-
-
-I,--init-script
-
-
Specifies an initialization script. See Chapter, initialization Scripts.
-
-
-i,--info
-
-
Set log level to info. See Chapter, Logging.
-
-
-m,--dry-run
-
-
Runs the build with all task actions disabled. See section 11.7, "Dry Run".
-
-
--no-color
-
-
Don't use the color in the console output.
-
-
--offline
-
-
Specifies that the build should operate without accessing network resources. See sections 51.9.2, "Command Line options to override caching".
-
-
-P,--project-prop
-
-
Sets a project property of the root project, for example -Pmyprop=myvalue . See section 14.2, "Gradle Properties and System Properties".
-
-
-p,--project-dir
-
-
Specifies the start directory for Gradle. Defaults to current directory. See sections 11.5, "Selecting which build to execute".
-
-
--parallel (incubating)
-
-
Build projects in parallel. Gradle would attempt to determine the optimal number of executor threads to use. This option is should only being used with decoupled projects (see section 57.9, "decoupled projects").
-
-
--parallel-threads (incubating)
-
-
Build projects in parallel, using the specified number of executor threads. For example --parallel-threads=3 . This option is should only being used with decoupled projects (see section 57.9, "decoupled projects").
-
-
--profile
-
-
Profiles build execution time and generates a in the buildDir/reports/profile directory. See section 11.6.7, "Profiling a Build".
-
-
--project-cache-dir
-
-
Specifies the project-specific cache directory. Default value is in the .gradle root project directory. See section 14.6, "Caching".
-
-
-q,--quiet
-
-
Log errors only. See Chapter, Logging.
-
-
--recompile-scripts
-
-
Specifies that cached build scripts is skipped and forced to be recompiled. See section 14.6, "Caching".
-
-
--refresh-dependencies
-
-
Refresh the state of dependencies. See sections 51.9.2, "Command Line options to override caching".
-
-
--rerun-tasks
-
-
Specifies that any task optimization is ignored.
-
-
-S,--full-stacktrace
-
-
Print out the full (very verbose) StackTrace for any exceptions. See Chapter, Logging.
-
-
-s,--stacktrace
-
-
Print out of the StackTrace also for user exceptions (e.g. compile error). See Chapter, Logging.
-
-
-u,--no-search-upwards
-
-
Don ' t search in the parent directories for a settings.gradle file.
-
-
-v,--version
-
-
Prints version Info.
-
-
-x,--exclude-task
-
-
Specifies a task to is excluded from execution. See section 11.2, "Excluding tasks".
Specifies the Gradle user home directory.
The section 20.1, "Configuring the Build Environment via Gradle.properties" contains specific information about Gradle con Figuration available via System properties.
Appendix D. Gradle Command Line