build wrapper

A small script committed to a project that downloads and runs the exact build tool version the project expects.

In more detail

mvnw and gradlew mean a new machine needs no build tool installed, and that every developer and the build server use the same version. Commit the wrapper files to the repository whichever tool you choose. Running ./mvnw test is exactly like running mvn test with the pinned version.

Examples

./mvnw -B -ntp test
./gradlew test --console=plain

Related terms

Taught in

References