Changing Gradle Wrapper versions

When using Gradle, it’s recommended to use the Gradle Wrapper. The wrapper allows you to easily distribute your projects to people who don’t have Gradle installed, and it makes sure your build is repeatable by not breaking when new versions of Gradle are released.

To create a wrapper file, executing gradle wrapper is enough.

Upgrade/downgrade wrapper versions

If you want to up or downgrade the Gradle wrapper, you can execute the command gradle wrapper --gradle-version X.Y. This is a feature introduced since Gradle 2.4 and allows you to easily change the wrapper version.