mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +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
24 lines
498 B
Markdown
24 lines
498 B
Markdown
# gradle
|
|
|
|
> Gradle es un sistema de código abierto para automatizar la compilación de proyectos.
|
|
> Más información: <https://gradle.org>.
|
|
|
|
- Compila un proyecto:
|
|
|
|
`gradle build`
|
|
|
|
- Excluye la tarea *test*:
|
|
|
|
`gradle build -x {{test}}`
|
|
|
|
- Ejecuta en modo offline para prevenir que Gradle acceda a la red durante una compilación:
|
|
|
|
`gradle build --offline`
|
|
|
|
- Limpia el directorio de compilación:
|
|
|
|
`gradle clean`
|
|
|
|
- Compila un paquete Android (APK) en modo lanzamiento:
|
|
|
|
`gradle assembleRelease`
|