The Gradle Wrapper is the preferred way of starting a Gradle build. It consists of a batch script for Windows and a
shell script for OS X and Linux. These scripts allow you to run a Gradle build without requiring that Gradle be installed on your system. Run the following command from your terminal.
$ gradle wrapper --gradle-version <<3.4>>
After this task completes, you will notice a few new files. The two scripts are in the root of the folder, while the wrapper jar and properties files have been added to a new gradle/wrapperfolder.
The Gradle Wrapper is now available for building your project. Add it to your version control system, and everyone that clones your project can build it just the same. It can be used in the exact same way as an installed version of Gradle. ### Verification Verify that you can do a build by running the wrapper to perform the build task for your project. The first time you run the wrapper for a specified version of Gradle, it downloads and caches the Gradle binaries for that version.
./gradlew clean ./gradlew build ```
The Gradle Wrapper files are designed to be committed to source control so that anyone can build the project without having to first install and configure a specific version of Gradle.
Don't forget to add .gradle folder to your .gitignore!