Gradle Command Line: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Command Line Flags= | =Command Line Flags= | ||
==--help== | |||
In-line help. | |||
==--q,--quiet== | ==--q,--quiet== | ||
Only warning and error category output is displayed. The logger "quiet" category can be accessed with: | Only warning and error category output is displayed. The logger "quiet" category can be accessed with: | ||
Line 14: | Line 16: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} | Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} | ||
==-m,--dry-run== | |||
Run the builds with all task actions disabled. | |||
==-i,--info== | ==-i,--info== | ||
Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} | Also see: {{Internal|Gradle Logging#Output_Configuration|Gradle Logging}} |
Revision as of 04:14, 7 November 2020
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.
--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
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