How to Install Gradle on Windows?
Last Updated :
31 Oct, 2022
Gradle is a flexible build automation tool to build software. It is open-source, and also capable of building almost any type of software. A build automation tool automates the build process of applications. The Software building process includes compiling, linking, and packaging the code, etc. Gradle makes the build process more consistent. Using Gradle we can build Android, Java, Groovy, Kotlin JVM, Scala, C++, Swift Libraries, and Applications.
Prerequisites to Install Gradle
To install Gradle, we have to make sure that we have Java JDK version 8 or higher to be installed on our operating system because Gradle runs on major operating systems only Java Development Kit version 8 or higher. To confirm that we have JDK installed on our system. The 'Java -version' command is used to verify if you run it on a windows machine.
You should see output like in the above image it confirms that you have JDK installed and the JAVA_HOME path set properly if you don't have JDK Install. then you should install it first before going to the next step. in this tutorial, we are not cover the installation of JDK. we consider that we have JDK already on the system.
Installing Gradle Manually
Gradle Enterprise provides the installation of Gradle with package manager SDKMAN! but here we are covering the manual installation of Gradle for Microsoft windows machines. before starting we confirmed we have JDK installed properly on the machine.
Step 1. Download the latest Gradle distribution
To install Gradle we need the Gradle distribution ZIP file, we can download the latest version of Gradle from the official website. there are other versions of Gradle available but we will strongly suggest using the official. The current release of Gradle is version 7.5.1, released on 05 Aug 2022. it might be another latest release available when you read this article. Always download the latest version. The Gradle distribution zip file is available in two flavors:
- Binary-only: Binary version contains only executable files no source code and documentation. You can browse docs, and sources online.
- Complete, with docs and sources: This package contains docs and sources offline. I recommend going with binary-only.
Step 2. Unpack the Gradle distribution zip file
After successfully downloading the Gradle distribution ZIP file, we need to unzip/unpack the compressed file. In File Explorer, create a new directory C:\Gradle (you can choose any path according to your choice) as shown In the image.
Now unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool of your choice.
Step 3. Configure your system environment
We have successfully unzipped the Gradle distribution Zip file. Now set the System environment PATH variable to the bin directory of the unzipped distribution. We have extracted files in the following location. you can choose any location to unzip:
C:\Gradle\bin
To set the Environment variable, Right-click on the "This Pc /Computer" icon, then select Properties -> Advanced System Settings -> Environmental Variables. The following screenshot may help you.
As shown in the following image, In the section System Variables select Path, then select the Edit option.
You will now see the following screen Select New, then add an entry for C:\Gradle\bin as shown in the image, now click on the OK button to save changes.
Step 4. Verifying and confirming the installation
After the successful setting of the environment variable, now it's time to verify the installation. Run the "gradle -v" command on the Windows command prompt, which displays the details of the Gradle version installed on the PC. If you get similar output as in the image, Gradle has been installed successfully, and you can now use Gradle in your projects.
Similar Reads
How to Install Go on Windows?
Prerequisite: Introduction to Go Programming Language Before, we start with the process of Installing Golang on our System. We must have first-hand knowledge of What the Go Language is and what it actually does? Go is an open-source and statically typed programming language developed in 2007 by Robe
3 min read
How to Install Cmder on Windows?
Cmder is a command prompt user interface. It is often used in windows machines mainly. Generally, users like to interact with graphical user interfaces. As in command prompt in windows are not that graphical. Understanding some concepts of the GUI method is most important nowadays. Cmder is one of t
2 min read
How to Install FreeCAD on Windows?
FreeCAD is a general-purpose, free, and open-source software. It was initially released on 29 October 2002 and written in C++ and Python languages. It is a parametric 3D computer-aided design (CAD) modeler and a building information modeling (BIM) software that supports the finite element method (FE
3 min read
How to Install GIMP on Windows?
GIMP is a free and open-source raster graphics editor used for image manipulation and image editing, free-form drawing, transcoding between different image file formats, and more specialized tasks. GIMP is released under GPL-3.0-or-later license and is available for Linux, macOS, and Microsoft Windo
2 min read
How to Install Geopandas on Windows?
Geopandas is a Python library used to add geographical data to pandas as an object. In this article, we will look into the process of installing Geopandas on a windows machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: Python PIP or Conda (depending upon user
2 min read
How to Install Flutter on Windows?
Flutter is Google's portable user interface (UI) toolkit. It is used to build and develop eye-catching, natively built mobile, desktop, and web applications from a single codebase. Flutter is free, open-sourced, and compatible with existing code. Due to its user-friendly interface and fairly simple
8 min read
How to Install Anaconda on Windows
Anaconda is a popular open-source distribution of Python and R and is widely used in the field of data science, machine learning and scientific computing. It contains Jupyter, Sypder, etc. that are well capable of handling a large number of data sets and processes as per user's need. It helps in sim
4 min read
How to Install Amazon Alexa on Windows?
Amazon Alexa is the most advanced and popular Artificial Intelligence virtual assistant that can listen to every command of the user very appropriately and then respond to it in a very nice way to solve the query of the user. It is the most advanced virtual assistant by Amazon because it can not onl
2 min read
How to Install Ruby Bundler on Windows?
Ruby is a high-level and open-source programming language. It is very useful in many aspects. Like other programming languages, Ruby is nowadays a highly useful programming language. Bundler is a type of environment manager in Ruby. It is generally used to install and update correct Gems for Ruby. G
2 min read
How to Install PIL on Windows?
In this article, we will look into the various methods of installing the PIL package on a Windows machine. Prerequisite:Python PIP or Ananconda (Depending upon your preference)For PIP Users: Open up the command prompt and use the below command to install the PIL package: pip install Pillow The follo
1 min read