Tech and Media Labs
This site uses cookies to improve the user experience.

Install Gradle

Jakob Jenkov
Last update: 2015-07-30

Before you can use Gradle you must install Gradle on the computer you plan to run the Gradle build scripts on.

Gradle Requirements

Gradle requires a Java SDK 6 or higher on the computer Gradle is to run on. Before you install Gradle, make sure you have a Java SDK 6 or higher installed. Gradle will use whatever Java SDK it finds on your system's path (environment.

If you want to use a specific Java version (if you have more than one Java SDK installed) you can set the JAVA_HOME environment variable to point to the install directory of the Java SDK you want to use.

Gradle Install

To install Gradle, simply download the version of Gradle you want to install, and unzip it into the directory you want Gradle installed in.

When Gradle is unzipped into the install directory, add the INSTALL-DIR/bin to the path environment variable. The INSTALL-DIR part of the added path must be the full path to the Gradle install directory (and not "INSTALL-DIR" as text).

To test if Gradle is properly installed, open a command prompt and execute this command:

gradle -version

If Gradle is correctly installed, you should see an output similar to this:

C:\Users\jjenkov>gradle -version

Gradle 2.5

Build time:   2015-07-08 07:38:37 UTC
Build number: none
Revision:     093765bccd3ee722ed5310583e5ed140688a8c2b

Groovy:       2.3.10
Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM:          1.8.0_45 (Oracle Corporation 25.45-b02)
OS:           Windows 7 6.1 x86


Jakob Jenkov

Copyright  Jenkov Aps
Close TOC