Table of Contents

Gradle - Wrapper (gradlew)

About

Wrapper is a script that invokes a declared version of Gradle, downloading it beforehand if necessary. As a result:

Example

Executing the build with the Wrapper batch file

gradlew.bat build

Model

<file>
├── build.gradle  
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar  
│       └── gradle-wrapper.properties  
├── gradlew  
├── gradlew.bat  
└── settings.gradle  

where:

Management

Creation

gradle init

SCM / Git

The wrapper is part of the code in a version control repository

Upgrade

.\gradlew wrapper --gradle-version 7.5.1

Documentation