In this post, I’ll show how to install Gradle on Windows 10. Therefore a short introduction about Gradle is very welcome I think. 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.
1. Prerequisites to install Gradle
Gradle runs on all major operating systems and requires only a Java JDK or JRE version 8 or higher to be installed. To check, run
java -version on a command prompt. If you don’t have the JDK installed please check this post How to install Java JDK.
2. Download Gradle
3. Set Up Environment to install Gradle
Setting up GRADLE_HOME and PATH environmental variables.
Create a new directory
C:\Gradle with File Explorer.
Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded.
Double-click the ZIP archive to expose the content. Drag the content folder
gradle-5.4.1 to your newly created
Alternatively you can unpack the Gradle distribution ZIP into
C:\Gradle using an archiver tool of your choice.
- Press Windows key + Q -> in the search bar type env.
- Click Environment Variables. In the section System Variables
New, add to Variable name -> GRADLE_HOME and to Variable value -> C:\Gradle\gradle-5.4.1
- Then find the
PATHenvironment variable and select it. Click Edit. If the
PATHenvironment variable does not exist, click
Newand create it yourself.
Newand add %GRADLE_HOME%\bin then press OK.
4. Verify your installation
Open a console (or a Windows command prompt) and run
gradle -v to run gradle and display the version, e.g.:
In this article we installed Gradle, a build automation system that is very helpful in developing any kind of java projects.
For Linux & Mac you can check this post on How to install Gradle on Linux.
If you have any question don’t esitate to post it on the comment section bellow.
If this post was helpful in any way, a share or a like would be very much appreaciated.
Thanks and happy coding.