Gradle
A build tool whose build is a script in a programming language and a graph of tasks that are skipped when their inputs have not changed.
In more detail
Gradle uses the same coordinates and repositories as Maven but makes the opposite choices: code instead of a document, a task graph instead of fixed phases. Declared task inputs and outputs, a build cache and a background daemon make repeat builds fast. The flexibility costs readability, because a large build script is a program someone has to maintain; Android projects always use Gradle.
Example
./gradlew test --console=plainRelated terms
- Gradle build script — The file, usually build.gradle.kts written in Kotlin, that configures a Gradle build: plugins, coordinates, toolchain, repositories and dependencies.
- Gradle task — A unit of work in a Gradle build, such as compileJava or test, which declares its inputs and outputs and its dependencies on other tasks.
- up-to-date check — Gradle's check that a task's inputs and outputs are unchanged since its last run, in which case it skips the task.
- build wrapper — A small script committed to a project that downloads and runs the exact build tool version the project expects.
- Maven — A build tool for Java in which a project declares itself in a pom.xml file and is built by a fixed lifecycle of phases.
Taught in
- Package Feeds, Views And Upstream Sources — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services