2025-03-14 21:59:59 -06:00
|
|
|
# gradle
|
|
|
|
|
|
|
|
|
|
> An open source build automation system.
|
|
|
|
|
> More information: <https://gradle.org>.
|
|
|
|
|
|
|
|
|
|
- Compile a package:
|
|
|
|
|
|
|
|
|
|
`gradle build`
|
|
|
|
|
|
|
|
|
|
- Exclude test task:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gradle build {{[-x|--exclude-task]}} {{test}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|