tldr/pages/common/gradle.md

25 lines
405 B
Markdown
Raw 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}}`
2017-12-11 20:13:19 +00:00
- 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`
- Compile and Release package:
2015-12-30 15:04:51 +00:00
`gradle assembleRelease`