HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gradle — An open source build automation system. More information: <https://manned.org/gradle>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
automationcommandbuildsourcecliopengradlesystem

Problem

How to use the gradle command: An open source build automation system. More information: <https://manned.org/gradle>.

Solution

gradle — An open source build automation system. More information: <https://manned.org/gradle>.

Compile a package:
gradle build


Exclude test task:
gradle build {{[-x|--exclude-task]}} test


Run in offline mode to prevent Gradle from accessing the network during builds:
gradle build --offline


Clear the build directory:
gradle clean


Build an Android Package (APK) in release mode:
gradle assembleRelease


List the main tasks:
gradle tasks


List all the tasks:
gradle tasks --all

Code Snippets

Compile a package

gradle build

Exclude test task

gradle build {{[-x|--exclude-task]}} test

Run in offline mode to prevent Gradle from accessing the network during builds

gradle build --offline

Clear the build directory

gradle clean

Build an Android Package (APK) in release mode

gradle assembleRelease

Context

tldr-pages: common/gradle

Revisions (0)

No revisions yet.