2016-09-22 08:03:38 +01:00
|
|
|
# gradle
|
2015-12-30 15:04:51 +00:00
|
|
|
|
2023-11-15 04:25:25 +00:00
|
|
|
> 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
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Compile a package:
|
2015-12-30 15:04:51 +00:00
|
|
|
|
|
|
|
`gradle build`
|
|
|
|
|
2017-11-29 15:04:45 +00:00
|
|
|
- Exclude test task:
|
|
|
|
|
2017-12-11 20:13:19 +00:00
|
|
|
`gradle build -x {{test}}`
|
2017-11-29 15:04:45 +00:00
|
|
|
|
2021-07-22 13:32:13 +01:00
|
|
|
- Run in offline mode to prevent Gradle from accessing the network during builds:
|
2017-11-29 15:04:45 +00:00
|
|
|
|
|
|
|
`gradle build --offline`
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Clear the build directory:
|
2015-12-30 15:04:51 +00:00
|
|
|
|
|
|
|
`gradle clean`
|
|
|
|
|
2021-07-22 13:32:13 +01:00
|
|
|
- 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`
|