Creating a distributable Gradle command

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.32.67