Gradle Command Line: Difference between revisions
(→--help) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} | Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} | ||
==<tt>-m</tt>,<tt>--dry-run</tt>== | ==<tt>-m</tt>,<tt>--dry-run</tt>== | ||
Executes a [[Gradle_Task#Dry_Run|dry run]]: run the builds with all task actions disabled. | |||
==<tt>-i</tt>,<tt>--info</tt>== | ==<tt>-i</tt>,<tt>--info</tt>== | ||
When executed with -i, Gradle displays the tasks that are executed, in the order in which they are executed. Additionally, [[#-m.2C--dry-run|-m|--dry-run]] can be used to simulate the execution without actually performing the task actions. | When executed with -i, Gradle displays the tasks that are executed, in the order in which they are executed. Additionally, [[#-m.2C--dry-run|-m|--dry-run]] can be used to simulate the execution without actually performing the task actions. | ||
Line 63: | Line 64: | ||
==<tt>--refresh-dependencies</tt>== | ==<tt>--refresh-dependencies</tt>== | ||
{{Internal|Gradle_Dependencies_and_Dependency_Configurations#Forced_Cache_Update|Gradle Dependencies and Dependency Configurations | Forced Cache Update}} | {{Internal|Gradle_Dependencies_and_Dependency_Configurations#Forced_Cache_Update|Gradle Dependencies and Dependency Configurations | Forced Cache Update}} | ||
==<tt>--rerun-tasks</tt>== | |||
{{Internal|Gradle_Incremental_Builds#Disable_Incremental_Builds|Disable Incremental Builds}} | |||
=Built-in Tasks= | =Built-in Tasks= |
Latest revision as of 05:18, 13 June 2021
Internal
Overview
In case of a multi-project, Gradle command can be executed from the root of the project or from any sub-projects.
Some command line options have the same effect as setting corresponding properties or environment variables. When a command line option is present, it has precedence over the equivalent properties or environment variables. More details in:
Command Line Flags
--help
In-line help.
gradle --help
--version
./gradlew --version
gradle --version
--q,--quiet
Only warning and error category output is displayed. The logger "quiet" category can be accessed with:
logger.quiet "will be displayed even in quiet mode"
Also see:
-m,--dry-run
Executes a dry run: run the builds with all task actions disabled.
-i,--info
When executed with -i, Gradle displays the tasks that are executed, in the order in which they are executed. Additionally, -m|--dry-run can be used to simulate the execution without actually performing the task actions.
Also see:
-d,--debug
Also see:
-P<property-name>=<property-value> Project Properties
See:
-D<property-name>=<property-value> System Properties
See:
-x,--exclude-task
Execute without the task following -x. For example, if I want to execute a build without tests:
gradle build -x test
or if I want to publish without running the javadoc task:
gradle build publish -x javadoc
--build-cache
--continue
Also see Ordering Tasks.
--no-daemon
See:
--stop
See:
--status
See: