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:
- A Windows 11 computer with administrative rights.
- A stable internet connection.
Step 1: Download Gradle
- Open your web browser and go to the Gradle website (http://gradle.org).
- Click on "Download" located in the menu at the top of the page.
- On the next page, scroll down to "Binary-only" and click on the link for the latest Gradle version.
- 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
- Open the Windows search bar and search for "Environment Variables", then select "Edit the system environment variables".
- In the System Properties window that opens, click on the "Environment Variables" button.
- Under "System Variables", click on "New".
- 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).
- Next, scroll down to the "Path" variable under "System Variables", and click on "Edit".
- Click on "New", and enter "%GRADLE_HOME%\bin".
- Click "OK" to save the changes and close all windows.
Step 3: Test the Installation
- Open a command prompt or terminal window.
- Type "gradle -v" and press Enter.
- 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!