mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-24 01:42:08 +02:00

'assembleDebug' and 'assembleRelease' tasks are specific to Android Studio: https://developer.android.com/studio/build/building-cmdline#ReleaseMode https://stackoverflow.com/questions/44185165/what-are-the-differences-between-gradle-assemble-and-gradle-build-tasks They are not common tasks like 'build', 'assemble' and 'check': https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_executing_tasks
32 lines
509 B
Markdown
32 lines
509 B
Markdown
# gradle
|
|
|
|
> Gradle is an open source build automation system.
|
|
> More information: <https://gradle.org>.
|
|
|
|
- Compile a package:
|
|
|
|
`gradle build`
|
|
|
|
- Exclude test task:
|
|
|
|
`gradle build -x {{test}}`
|
|
|
|
- Run in offline mode to prevent Gradle from accessing the network during builds:
|
|
|
|
`gradle build --offline`
|
|
|
|
- Clear the build directory:
|
|
|
|
`gradle clean`
|
|
|
|
- Build an Android Package (APK) in release mode:
|
|
|
|
`gradle assembleRelease`
|
|
|
|
- List the main tasks:
|
|
|
|
`gradle tasks`
|
|
|
|
- List all the tasks:
|
|
|
|
`gradle tasks --all`
|