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.

Press “Windows + R” button and type ‘cmd’ in the box.2. Click OK.

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.

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.

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\”.

Unzip them and place them in your Windows machine at any specific location. For e.g. “C:\Program Files\”.3. Click on the Windows button at the left bottom of the desktop.

4. Right-click on “Computer” and click on “Properties”. This will open the Control Panel.

Right-click on “Computer” and click on “Properties”. This will open the Control Panel.5. Click on “Advanced System settings” and then click on “Environment Variables” button.

Right-click on “Computer” and click on “Properties”. This will open the Control Panel.6. Click on “New…” button under the “System Variables” section and enter Variable name as ‘GRADLE_HOME’.

7. Provide the path of the Gradle file as Variable value, i.e. C:\Program Files\gradle-2.8

8. Click OK.

Click OK.9. Select “path” variable under the “System Variables” section and click on “Edit” button.

Select “path” variable under the “System Variables” section and click on “Edit” button.

10. Go to the end of variable value and add “;%GRADLE_HOME%\bin” and click on “OK” button.

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.

Press “Windows + R” and type ‘cmd’. Click OK.12. Type the command “gradle –v” on the command prompt.

13. Now the screen displays the version of the Gradle. This means that the Gradle is successfully configured on the given Windows machine.

Now the screen displays the version of the Gradle. This means that the Gradle is successfully configured on the given Windows machine.

 

SHARE THIS

Get A Free Quote

4 thoughts on “How to Configure Gradle on Windows Machine?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.