The open source build system of choice for Java, Android, and Kotlin developers
open sourceApache-2.0free
Gradle Build Tool builds, tests and packages JVM, Android, Kotlin, C++ and Swift projects from build scripts written in a Kotlin or Groovy DSL. It skips work already done with incremental builds and a build cache, declares dependencies and repositories and controls their versions, and is extended with plugins and custom tasks. It runs from the command line through the Gradle Wrapper and from Android Studio, IntelliJ IDEA, Eclipse, NetBeans and VS Code. Gradle, Inc. makes it and sells Develocity, a commercial platform for faster CI builds and build analytics, and a paid security subscription that fixes Gradle versions past their open source end of life.
Ways to install
Package managers
Problems it solves
- build and test my Java or Kotlin project with dependencies from Maven Central
- my Android app's build is slow and rebuilds things that didn't change
- share one build setup across many modules in a monorepo
- pin the build tool version so every developer and CI uses the same one
- write custom build logic in Kotlin instead of XML
- cache build outputs between CI runs
Features
- Kotlin and Groovy build script DSLs
- incremental builds and build cache
- dependency and repository declaration with version control
- Gradle Wrapper pins the Gradle version per project
- JVM, Android, C++ and Swift builds
- plugin and task authoring
- Tooling API for IDEs and tools
- Build Scans
- IDE support in Android Studio, IntelliJ IDEA, Eclipse, NetBeans and VS Code
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what Gradle does.
- Apache Maven Apache Maven builds, tests, and documents Java projects from a single project object model (POM)
- Bazel a fast, scalable, multi-language and extensible build system
