How to Download and Install Gradle 3.5 on Windows
Do you need to download and install Gradle 3.5 on Windows?
You’ve reached the right place.
Because in this tutorial I’ll walk you through the different setup steps.
Off we go!
Check following post if you are looking to download and install Gradle 4.1 or the latest Gradle version.
What is Gradle?
Gradle is a build automation tool. It helps you to build, automate and deliver software.
Gradle is open-source and licensed under the Apache License 2.0.
Step #1: Check Prerequisites
Gradle requires Java to work. So let’s check if you have Java configured on your system.
Click on the search button. Then type “cmd” (without quotes).
On Windows 7 click on the Windows button.
Click on the Command Prompt
shortcut.
Wait for the command prompt to open.
Type “java -version” and press ENTER
.
The above command prints the installed Java version.
For Gradle 3.5 you need Java version 1.7 or higher.
If you do not have Java installed on your system. Check following post which details how to install a JDK on Windows 10.
Step #2: Download
Go to the Gradle releases page.
Scroll down to v3.5.1
and click on the binary-only
link.
Wait for the download to complete.
Do you want to skip above steps? Here is the direct link to download the Gradle 3.5.1 binary-only installer for Windows.
Step #3: Install
Open the location of the downloaded installer.
Right-click the ZIP archive file. Select Extract All…
.
Select an extract destination for the Gradle files.
In this example, we extract in C:\Users\Downlinko\tools\gradle
.
Click on Extract
. This extracts all Gradle files under C:\Users\Downlinko\tools\gradle\gradle-3.5.1
.
From now on we refer to this location as
[GRADLE_INSTALL_DIR]
.
Step #4: Setup
We need to set up an environment variable that will point to our Gradle installation.
Click on the search button. Then type “env”.
On Windows 7 click on the Windows button.
Click on the Edit environment variables for your account
shortcut.
Wait for the environment variables window to open.
Click on New…
.
Enter “GRADLE_HOME” as variable name. Enter the [GRADLE_INSTALL_DIR]
as variable value.
In this tutorial the installation directory is: C:\Users\Downlinko\tools\gradle\gradle-3.5.1
.
Click OK
.
Next, we need to configure the PATH environment variable so we can run Gradle from a command prompt.
Select the PATH
variable. Click on Edit…
.
Click on New
and type “%GRADLE_HOME%\bin” as shown below.
Click OK
.
Click OK
once more to close the environment variables window.
On Windows 7 you cannot add extra values for an existing
Path
variable. You need to append “;%GRADLE_HOME%\bin” at the end of the variable value instead.
Step #5: Test
To test the setup click on the search button. Then type “cmd”.
Click on the Command Prompt
shortcut.
Wait for the command prompt to open.
Type “gradle -version” and press ENTER
.
The above command prints the installed Gradle version.
Congratulations, you have installed Gradle 3.5.1 on Windows 10!
Now go ahead and create your first Gradle build.
Drop a line below if you liked this post.
Thanks!
Leave a comment