Как установить gradle на windows 10

The current Gradle release is 8.14. You can download binaries and view docs for all Gradle versions from the releases page.

  • Prerequisites
  • Additional resources
  • Installing with a package manager
  • Installing manually
  • Upgrade with the Gradle Wrapper
  • Older Releases
  • Command-Line Completion

Prerequisites

Gradle runs on all major operating systems and requires only a Java JDK version 8 or higher to be installed. To check, run java -version:

$ java -version
java version "1.8.0_121"

Additional resources

  • On-demand and live online training is available for free to Gradle users.
  • Self-paced tutorials are a good place to try Gradle with a variety of languages in addition to the docs.
  • Gradle has a visual build inspection tool: Build Scan™.
  • Finally, the Gradle Newsletter is a great way to keep UP-TO-DATE, with issues crafted monthly.

Installing with a package manager

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix-based systems.

$ sdk install gradle 8.14

Homebrew is “the missing package manager for macOS”.

Other package managers are available, but the version of Gradle distributed by them is not controlled by Gradle, Inc. Linux package managers may distribute a modified version of Gradle that is incompatible or incomplete when compared to the official version (available from SDKMAN! or below).

› Additional helpful information

Installing manually

Step 1. Download the latest Gradle distribution

The current Gradle release is version 8.14, released on 25 Apr 2025. The distribution zip file comes in two flavors:

  • Binary-only
  • Complete, with docs and sources

If in doubt, choose the binary-only version and browse docs and sources online.

Need to work with an older version? See the releases page.

Step 2. Unpack the distribution

Linux & MacOS users

Unzip the distribution zip file in the directory of your choosing, e.g.:

$ mkdir /opt/gradle
$ unzip -d /opt/gradle gradle-8.14-bin.zip
$ ls /opt/gradle/gradle-8.14
LICENSE  NOTICE  bin  getting-started.html  init.d  lib  media
Microsoft Windows users

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-8.14 to your newly created C:\Gradle folder.

Alternatively you can unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool of your choice.

Step 3. Configure your system environment

Linux & MacOS users

Configure your PATH environment variable to include the bin directory of the unzipped distribution, e.g.:

 $ export PATH=$PATH:/opt/gradle/gradle-8.14/bin
Microsoft Windows users

In File Explorer right-click on the This PC (or Computer) icon, then click Properties -> Advanced System Settings -> Environmental Variables.

Under System Variables select Path, then click Edit. Add an entry for C:\Gradle\gradle-8.14\bin. Click OK to save.

Step 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.:

$ gradle -v

------------------------------------------------------------
Gradle 8.14
------------------------------------------------------------

› Additional helpful information

Upgrade with the Gradle Wrapper

If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the wrapper task, specifying the desired Gradle version:

$ ./gradlew wrapper --gradle-version=8.14 --distribution-type=bin

Note that it is not necessary for Gradle to be installed to use the Gradle wrapper. The next invocation of gradlew or gradlew.bat will download and cache the specified version of Gradle.

$ ./gradlew tasks
Downloading https://services.gradle.org/distributions/gradle-8.14-bin.zip
...

› Additional helpful information

Older Releases

You can find all releases and their checksums on the releases page.

Command-Line Completion

Command-line completion scripts are available for bash and zsh. This provides completion for Gradle tasks and command-line options.

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.

Verify JDK installation

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:

  1. Binary-only: Binary version contains only executable files no source code and documentation. You can browse docs, and sources online.
  2. 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.

Gradle distribution after extracted

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.

System Properties

As shown in the following image, In the section System Variables select Path, then select the Edit option.

Select the path for edit

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.

Add new Path

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.

Verifying and confirming the installation

Skip to content

How to install Gradle on Windows 10

In this tutorial, we will see how to install Gradle on Windows 10 operating system.

Prerequisites:

  • Gradle runs on almost major operating systems.
  • Gradle required Java JDK/JRE version 8 or higher.

Versions:

  • Windows 10 Pro 64 bit operating system
  • Gradle 5.4.1
  • Java 1.8

Install Gradle on Windows 10:

Here are the simple steps to download and install the Gradle on windows 10.

1. Get Gradle:

Download the latest Gradle distributions from the official website; for me, it is 5.4.1.

How to install Gradle on Windows 10-min

Click on the above complete link to download Gradle; it will be downloaded as a .zip file.

2. Extract the File:

After successfully download, extract the Gradle-5.4.1-all.zip.

If everything went well, you could see the below folders under the Gradle root directory.

How to install Gradle on Windows 10 7-min

3. Set Gradle Path:

Setting the Gradle path under User variables.

Go to Advanced System Settings -> Click on Environment Variables -> then you could see the below window.

How to install Gradle on Windows 10 3-min

Select the Path under the User variables section and click on the Edit button.

How to install Gradle on Windows 10 4-min

Click on the New button.

How to install Gradle on Windows 10 5-min

Fill the Gradle path until /bin and click on Ok and Close.

That’s it; now you have successfully installed and set up the Gradle on your Windows Operating System.

4. Verify:

To verify the setup- Open command prompt and check for the gradle -version like below.

How to install Gradle on Windows 10 6-min

If you see the above output; your installation process is done.

References:

  • Gradle Installation
  • Setup Gradle on STS

Happy Learning 🙂

Share a word.

Related Posts

Page load link

How to Install Gradle on Windows 10

Gradle is a popular build automation tool used to compile, test, and deploy software projects. In this guide, we will walk you through the steps to install Gradle on Windows 10.

Prerequisites

To install Gradle on Windows 10, you need to have the following:

  • Java Development Kit (JDK) 8 or later installed on your computer.
  • Basic knowledge of using the command prompt.

Steps to Install Gradle

  1. Visit the official Gradle website at http://gradle.org/ and navigate to the Download page.

  2. Click the «Download» button to download the latest version of Gradle for Windows.

  3. Once the download is complete, extract the files to a suitable location. For example, you can extract the files to the C:\ drive.

  4. Next, add the Gradle bin directory to your system path. To do this, open the Start menu and search for «Environment Variables» and click on «Edit the system environment variables».

  5. In the System Properties window, click on the «Environment Variables» button.

  6. Under «System Variables», scroll down and find the «Path» variable, then click «Edit».

  7. In the Edit Environment Variable window, click «New» and enter the path to the Gradle bin directory. For example, C:\gradle-x.x.x\bin, where «x.x.x» is the version of Gradle you downloaded.

  8. Click «OK» to close all windows.

Verify Gradle Installation

To verify that Gradle is installed correctly, open the command prompt and enter the following command:

gradle -v

If Gradle is installed correctly, you should see the version of Gradle you downloaded on your screen.

Congratulations! You have successfully installed Gradle on your Windows 10 computer. You can now start using Gradle to automate your software projects.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!

Gradle is an open source build tool, builds upon the concepts of Apache Ant and Apache Maven, can be used to build Java, C/C++, Python, Android, etc. In this tutorial, we’ll show you how to install Gradle on Windows so that you can get started to explore more features of Gradle.

1. Prerequisites

Gradle requires Java 7 or higher version

2.1. Download Gradle

You can download a distribution of Gradle from its website. There are 2 distributions: Completed distribution (including source code and offline docs) and Binary only distribution. In this tutorial, we will download the Binary only distribution of Gradle 3.0

After downloading, unzip the downloaded file to a proper location, for example: D:\Soft\gradle-3.0

2.2.  Define GRADLE_HOME Variable

2.2.1.In Windows 7, right click My Computer and select Properties > Advanced.
In Windows 8, Windows 10,  go to Control Panel > System > Advanced System Settings.

2.2.2. Under System Variables, click New

2.2.3. In the Variable Name field, enter GRADLE_HOME

2.2.4. In the Variable Value field, enter the Gradle directory, for example: D:\Soft\gradle-3.0

Install Gradle on Windows - Add GRADLE_HOME variable

Add GRADLE_HOME variable

2.3.  Append %GRADLE_HOME%/bin to the PATH

2.3.1. Select the Path variable and click Edit button.

2.3.2. For the Windows 7, 8 or some earlier version of Windows 10

In the Variable Value field, append ;%GRADLE_HOME%\bin to the end

For the latest version of Windows 10, click New, then add %GRADLE_HOME%\bin to the new line

Add %GRADLE_HOME%/bin to PATH

Add %GRADLE_HOME%/bin to PATH

2.3.3. Click OK to finish

3. Verification

Open the terminal and issue below command to check whether the Gradle was installed successfully or not

The output should be:

Gradle 3.0

Build time:   20160815 13:15:01 UTC

Revision:     ad76ba00f59ecb287bd3c037bd25fc3df13ca558

Groovy:       2.4.7

Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015

JVM:          1.8.0_65 (Oracle Corporation 25.65b01)

OS:           Windows 10 10.0 amd64

4. References

We have just finished to install Gradle on Windows. Below are other articles related to Gradle you may interested in, please refer to the following links:

Gradle Tutorials

Install Gradle on Ubuntu 16.04 LTS (Xenial Xerus)

Gradle Proxy Settings

Where is Gradle Cache Location

Specify The Build File in Gradle

Using Gradlew, The Gradle Wrapper

Set Java Source Compatibility and Target Compatibility in Gradle

Convert Maven POM File to Gradle Build File

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Avrdude gui windows 10
  • Как установить файл mdf на windows 10
  • Fallout 4 glass windows
  • Windows 10 установилась криво
  • Продлить пробную лицензию windows