2016-09-22 08:03:38 +01:00
|
|
|
# gradle
|
2015-12-30 23:04:51 +08:00
|
|
|
|
2019-10-07 17:06:56 -03: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 23:04:51 +08:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Compile a package:
|
2015-12-30 23:04:51 +08:00
|
|
|
|
|
|
|
`gradle build`
|
|
|
|
|
2017-11-29 16:04:45 +01:00
|
|
|
- Exclude test task:
|
|
|
|
|
2017-12-11 21:13:19 +01:00
|
|
|
`gradle build -x {{test}}`
|
2017-11-29 16:04:45 +01:00
|
|
|
|
2017-12-11 21:13:19 +01:00
|
|
|
- Run in offline mode to prevent gradle from accessing the network during builds:
|
2017-11-29 16:04:45 +01:00
|
|
|
|
|
|
|
`gradle build --offline`
|
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
- Clear the build directory:
|
2015-12-30 23:04:51 +08:00
|
|
|
|
|
|
|
`gradle clean`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Compile and Release package:
|
2015-12-30 23:04:51 +08:00
|
|
|
|
|
|
|
`gradle assembleRelease`
|
2021-05-06 17:23:16 +02:00
|
|
|
|
|
|
|
- List the main tasks:
|
|
|
|
|
|
|
|
`gradle tasks`
|
|
|
|
|
|
|
|
- List all the tasks:
|
|
|
|
|
|
|
|
`gradle tasks --all`
|