build tool
A program that turns a project's source into a tested, packaged artifact with one command, fetching dependencies along the way.
In more detail
A build tool gives every project the same layout and lifecycle, resolves libraries and their own dependencies at agreed versions, runs the compiler and the tests, and packages the result. Its real value is repeatability: the command you type is the one the build server runs. The Java ecosystem has two main build tools, Maven and Gradle.
Related terms
- 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.
- 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.
- build wrapper — A small script committed to a project that downloads and runs the exact build tool version the project expects.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services