Gradle Command Line

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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:

Gradle Logging

-i,--info

Also see:

Gradle Logging

-d,--debug

Also see:

Gradle Logging

-P<property-name>=<property-value> Project Properties

See:

Gradle Project Coordinates, State and Configured Properties

-D<property-name>=<property-value> System Properties

See:

Gradle System Properties

-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

--build-cache

Built-in Tasks