Gradle Command Line: Difference between revisions
(→--stop) |
|||
Line 56: | Line 56: | ||
==--status== | ==--status== | ||
See: {{Internal|Gradle_Daemon_Operations#Status|Gradle Daemon Operations | Status}} | See: {{Internal|Gradle_Daemon_Operations#Status|Gradle Daemon Operations | Status}} | ||
==--refresh-dependencies== | |||
The dependencies can also be removed from ~/.gradle/cache so Gradle will have to download them again. | |||
=Built-in Tasks= | =Built-in Tasks= | ||
* [[Gradle tasks Task|gradle tasks]] | * [[Gradle tasks Task|gradle tasks]] |
Revision as of 05:28, 13 January 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.
Command Line Flags
--help
In-line 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
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:
--refresh-dependencies
The dependencies can also be removed from ~/.gradle/cache so Gradle will have to download them again.