Although Gradle is a great tool, it isn't easy to share code that depends on Gradle to be built. The potential users of our open source project may not have installed Gradle or even the same Gradle version as we have. Luckily for us, Gradle provides a way to create a distributable Gradle utility or command.
In a new, clean directory, type this in your console:
$ gradle wrapper
This command creates a gradlew script that can be executed. The first time that you run the command, it downloads all the necessary Gradle files and then it becomes a repeatable command.