How to install Gradle on Windows

Gradle Step by Step Guide



Gradle is an open-source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven for declaring the project configuration. 

Gradle was designed for multi-project builds, which can grow to be quite large. It supports incremental builds by intelligently determining which parts of the build tree are up to date; any task dependent only on those parts does not need to be re-executed.

Prerequisite:
Java JDK or JRE version 7 or higher.
Gradle (Any Version).

Checking Java JDK version:
If you don't know the version of Java JDK installed on your PC you can simply check it by opening up the command prompt and typing the command "java -version".
$ java -version
java version "1.8.0_121"
Download Gradle:
To download the latest version of Gradle visit Gradle official download page and scroll down to the bottom until Install Manually section and click on "Complete" link to download.


Extraction:
Extract the content of the downloaded zip file into Local Disk (C:) as show in the image below.


Set Environmental Variable:
The final step is to set the environmental variables, so that the system know where to check for Gradle. Navigate to "This PC / Properties / Advanced System Settings" and you will be provided with a window like this.











Click on Environment Variables.













Select "Path" and click Edit.

Set the path to extracted Gradle folder in C:\ directory and click OK. All has be set up and you can confirm this by opening up the command prompt and entering the code given below:

$ Gradle -version
------------------------------------------------------------
Gradle 4.9
------------------------------------------------------------

Build time:   2018-07-16 08:14:03 UTC
Revision:     efcf8c1cf533b03c70f394f270f46a174c738efc

Kotlin DSL:   0.18.4
Kotlin:       1.2.41
Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_92 (Oracle Corporation 25.92-b14)
OS:           Windows 10 10.0 x86

Comments

TechCrunch RSS Feed