How to Install Gradle on Windows 11

Gradle is a powerful build automation tool used to automate building, testing and deployment of software projects. In this tutorial, we'll walk you through the steps to install Gradle on Windows 11.

Prerequisites

Before we start, you'll need the following:

Step 1: Download Gradle

  1. Open your web browser and go to the Gradle website (http://gradle.org).
  2. Click on "Download" located in the menu at the top of the page.
  3. On the next page, scroll down to "Binary-only" and click on the link for the latest Gradle version.
  4. Once the download is complete, extract the contents of the ZIP file to a folder of your choice (such as C:\Gradle).

Step 2: Set up Environment Variables

  1. Open the Windows search bar and search for "Environment Variables", then select "Edit the system environment variables".
  2. In the System Properties window that opens, click on the "Environment Variables" button.
  3. Under "System Variables", click on "New".
  4. Enter "GRADLE_HOME" as the variable name, and the path to the Gradle folder you extracted in Step 1 as the variable value (such as C:\Gradle).
  5. Next, scroll down to the "Path" variable under "System Variables", and click on "Edit".
  6. Click on "New", and enter "%GRADLE_HOME%\bin".
  7. Click "OK" to save the changes and close all windows.

Step 3: Test the Installation

  1. Open a command prompt or terminal window.
  2. Type "gradle -v" and press Enter.
  3. If Gradle is installed correctly, you should see the version number and other details about your installation.

Congratulations! You've successfully installed Gradle on your Windows 11 computer. You're now ready to start building and testing your software projects using Gradle.

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!