Gradle Command Line: Difference between revisions
Jump to navigation
Jump to search
(→-x) |
|||
Line 20: | Line 20: | ||
See: {{Internal|Gradle System Properties#Overview|Gradle System Properties}} | See: {{Internal|Gradle System Properties#Overview|Gradle System Properties}} | ||
==-x== | ==-x== | ||
{{External|https://docs.gradle.org/current/userguide/command_line_interface.html#sec:excluding_tasks_from_the_command_line}} | |||
Execute without the task following -x. For example, if I want to execute a [[Gradle Operations TODEPLETE#Build_without_Tests|build without tests]]: | Execute without the task following -x. For example, if I want to execute a [[Gradle Operations TODEPLETE#Build_without_Tests|build without tests]]: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
Line 28: | Line 29: | ||
gradle build publish -x javadoc | gradle build publish -x javadoc | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==--build-cache== | ==--build-cache== | ||
=Built-in Tasks= | =Built-in Tasks= | ||
* [[Gradle tasks Task|gradle tasks]] | * [[Gradle tasks Task|gradle tasks]] |
Revision as of 21:05, 18 October 2020
Internal
Overview
Command Line Flags
--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:
-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
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