Gradle is an open-source build automation tool that requires a Java Development Kit installation to run. This wikiHow will teach you how to download and install Gradle manually. If you have Mac or Linux with either the SDKMAN! or Homebrew package managers, enter "sdk install gradle" (Linux) or "brew install gradle" (Mac). Before you can run Gradle, you need to have the Java Development Kit version 8 or higher installed.

Steps

  1. 1
    Go to https://gradle.org/releases/ in a web browser. You can use any web browser on Windows, Mac, or Linux to manually install Gradle.
  2. 2
    Click Complete. If you only want the main file, click to download the "binary-only" file, but the "complete" download includes all docs and sources.
    Advertisement
  3. 3
    Create a new folder (Windows only). You only need to create a new folder if you're using Windows. To do this, open a File Explorer window, click "Local Disk (C://)" from your navigation panel on the left side of the window, right-click in the blank field and select New, then name the new folder "Gradle."
  4. 4
    Unpack the downloaded file. It's a .zip that you'll be able to extract without any extra software. macOS or Linux computers will create a new folder when it's extracting, so unzip the package anywhere. Windows users will need to extract the zip folder into the newly created folder.
  5. 5
    Configure your system environment. Now that you have Gradle downloaded, it won't work until you have those files connected to the Gradle website via terminal, which works differently between Windows and Mac/Linux.
    • If you're using a Mac or Linux computer, open terminal (press Ctrl + T in Linux or use Spotlight in Mac) and enter the command "export PATH=$PATH:/opt/gradle/gradle-6.7.1/bin".
    • Windows users need to open File Explorer, right-click This PC > Properties > Advanced System Settings (which you'll find in the far right side of your screen under the header "Related Settings) and Environment Variables. Under "System variables" select Path and Edit.
      • Click New and enter "C:\Gradle\gradle-6.7.1\bin" and click OK.
    • To verify that you have installed Gradle correctly, enter "gradle -v" into your terminal or command prompt window.[1]
    Advertisement

About This Article

Darlene Antonelli, MA
Written by:
Tech Specialist
This article was written by Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for wikiHow. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities.
How helpful is this?
Co-authors: 3
Updated: December 13, 2020
Views: 961
Article SummaryX

1. Go to https://gradle.org/releases/ in a web browser.
2. Click Complete.
3. Create a new folder (Windows only).
4. Unpack the downloaded file.
5. Configure your system environment.

Did this summary help you?
Advertisement