tldr/pages/common/gradle.md

33 lines
509 B
Markdown
Raw Permalink Normal View History

# gradle
2015-12-30 15:04:51 +00:00
> Gradle is an open source build automation system.
2019-06-07 11:58:26 +01:00
> More information: <https://gradle.org>.
2015-12-30 15:04:51 +00:00
- Compile a package:
2015-12-30 15:04:51 +00:00
`gradle build`
- Exclude test task:
2017-12-11 20:13:19 +00:00
`gradle build -x {{test}}`
- Run in offline mode to prevent Gradle from accessing the network during builds:
`gradle build --offline`
- Clear the build directory:
2015-12-30 15:04:51 +00:00
`gradle clean`
- Build an Android Package (APK) in release mode:
2015-12-30 15:04:51 +00:00
`gradle assembleRelease`
2021-05-06 16:23:16 +01:00
- List the main tasks:
`gradle tasks`
- List all the tasks:
`gradle tasks --all`