Skip to content
Surf Wiki
Save to docs
general/compiling-tools

From Surf Wiki (app.surf) — the open knowledge base

Gradle

Free software build automation tool


Summary

Free software build automation tool

FieldValue
nameGradle Build Tool
logoGradle logo.svg
logo altAn icon of an elephant, next to the word 'Gradle'
developerHans Dockter, Adam Murdoch, Szczepan Faber, Peter Niederwieser, Luke Daley, Rene Gröschke, Daz DeBoer
released
latest release version
latest release date
latest preview version9.3.0 RC3
latest preview date
programming languageJava, Groovy, Kotlin
genreBuild tool
licenseApache License 2.0
website

Gradle Build Tool ("Gradle") is a build automation tool for multi-language software development. It manages tasks like compilation, packaging, testing, deployment, and publishing. Supported languages include Java (as well as JDK-based languages Kotlin, Groovy, Scala), C/C++, and JavaScript. Gradle builds on the concepts of Apache Ant and Apache Maven, and introduces a Groovy- and Kotlin-based domain-specific language contrasted with the XML-based project configuration used by Maven. Gradle uses a directed acyclic graph to provide dependency management. The graph is used to determine the order in which tasks should be executed. Gradle runs on the Java Virtual Machine.

Gradle was designed for multi-project builds, which can grow to be large. It operates based on a series of build tasks that can run serially or in parallel. Incremental builds are supported by determining the parts of the build tree that are already up to date; any task dependent only on those parts does not need to be re-executed. It also supports caching of build components, potentially across a shared network using the Gradle Build Cache. Combined with the proprietary hosted service of Develocity, it produces web-based build visualizations called Gradle Build Scans. The software is extensible for new features and programming languages with a plugin subsystem.

Gradle is distributed as Free Software under the Apache License 2.0, and was first released in 2008.

History

Origin of the name

Founder and CEO Hans Dockter has said that he originally wanted to name the project "Cradle". However, to make the name unique and less "diminutive" he instead chose "Gradle", taking the "G" from the use of Groovy.

Major versions

VersionDate
0.121 April 2008
1.0title=Gradle Releasesurl=https://gradle.org/releases/access-date=2021-10-15website=Gradlelanguage=en-US}}
2.01 July 2014
3.015 August 2016
4.014 June 2017
5.026 November 2018
6.08 November 2019
7.09 April 2021
8.013 February 2023
9.031 July 2025

Features

Gradle offers support for all phases of a build process including compilation, verification, dependency resolving, test execution, source code generation, packaging and publishing. Because Gradle follows a convention over configuration approach, it is possible to describe all of these build phases in short configuration files. Conventions include the folder structure of the project, standard tasks and their order as well as dependency repositories. However, all conventions can be overridden by the project configuration if necessary.

Plugins are a central component of Gradle. They allow for integration of a set of configurations and tasks into a project and can be included from a central plugin repository or custom-developed for a single project.

Distribution

Gradle is available as a separate download, but can also be found bundled in products such as Android Studio. Gradle Wrapper is the recommended way to invoke Gradle. It can download the declared version of Gradle beforehand if necessary.

References

References

  1. "Gradle User Manual".
  2. "Getting Started With Gradle". Petri Kainulainen.
  3. "What is Gradle?".
  4. "Our Story".
  5. (2011-12-20). "Why is gradle called gradle?".
  6. (2008-05-12). "Index of /gradle".
  7. "Gradle {{!}} Releases".
  8. (2023-06-24). "Building Java & JVM projects".
  9. "Gradle Wrapper Reference".
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Gradle — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report