How to Configure Gradle on Windows Machine?
Gradle is an open source build automation system that uses the concepts of Apache Ant and Apache Maven. However, it introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven.
How to verify if Gradle is configured on a Windows machine or not?
1. Press “Windows + R” button and type ‘cmd’ in the box.
3. Type the command “gradle –v” on the command prompt.
a) If it shows the message that “’gradle’ is not recognized as an internal or external command, operable program or batch file”, it means that Gradle is not configured on the Windows machine.
b) If it shows the version of the Gradle, then it means that the Gradle is already configured on the given Windows machine.
How to Configure Gradle?
1. Download the zipped file of Gradle from https://services.gradle.org/distributions/gradle-2.8-all.zip.
2. Unzip them and place them in your Windows machine at any specific location. For e.g. “C:\Program Files\”.
4. Right-click on “Computer” and click on “Properties”. This will open the Control Panel.
7. Provide the path of the Gradle file as Variable value, i.e. C:\Program Files\gradle-2.8
8. Click OK.
10. Go to the end of variable value and add “;%GRADLE_HOME%\bin” and click on “OK” button.
11. Press “Windows + R” and type ‘cmd’. Click OK.
13. Now the screen displays the version of the Gradle. This means that the Gradle is successfully configured on the given Windows machine.