Gradle - Wrapper (gradlew)

About

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

  • developers can get up and running with a Gradle project quickly
  • and projects can have different gradle version

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:

  • gradle-wrapper.jar is the Gradle Wrapper executable JAR
  • gradle-wrapper.properties is the Gradle Wrapper configuration properties

Management

Creation

gradle init

SCM / Git

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

Documentation


Powered by ComboStrap