mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
620 B
Plaintext
38 lines
620 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|