2016-09-22 08:03:38 +01:00
|
|
|
# gradle
|
2015-12-30 15:04:51 +00:00
|
|
|
|
2017-11-29 15:04:45 +00:00
|
|
|
> Gradle is an advanced open source build automation system.
|
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
|
|
|
|
2017-12-11 20:13:19 +00: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`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Compile and Release package:
|
2015-12-30 15:04:51 +00:00
|
|
|
|
|
|
|
`gradle assembleRelease`
|