LinuxCommandLibrary

gradle

JVM build automation tool

TLDR

Build project

$ gradle build
copy
Run tests
$ gradle test
copy
Clean project
$ gradle clean
copy
List tasks
$ gradle tasks
copy
Run with daemon
$ gradle --daemon build
copy

SYNOPSIS

gradle [options] [tasks]

DESCRIPTION

gradle is a build automation tool for Java, Kotlin, Android, and other JVM projects. It uses Groovy or Kotlin DSL for build scripts and provides dependency management, incremental builds, and an extensive plugin ecosystem.
Gradle is the standard build system for Android development and supports multi-project builds with a persistent daemon for faster execution.

PARAMETERS

TASKS

Tasks to execute.
--daemon
Use Gradle daemon.
--no-daemon
Don't use daemon.
-q, --quiet
Quiet output.
-i, --info
Info logging.
--parallel
Parallel execution.
--help
Display help information.

CONFIGURATION

build.gradle / build.gradle.kts

Project build script defining tasks, dependencies, and plugins.
gradle.properties
Project and user-level properties for build configuration.
settings.gradle / settings.gradle.kts
Multi-project build settings and included modules.
~/.gradle/gradle.properties
User-level Gradle properties applied to all builds.

CAVEATS

JVM required. First run downloads dependencies. Daemon improves performance.

HISTORY

Gradle was created by Hans Dockter, first released in 2007, becoming the official Android build system in 2013.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community