Gradle Installation Steps
Download and unpack Gradle distributions from the Gradle web site: Gradle Downloads.
Gradle requires a Java JDK or JRE to be installed, java version 6 or higher is must. Check java version in your system by using below command:
Gradle ships with its own Groovy library, therefore Groovy does not need to be installed. Any existing Groovy installation is ignored by Gradle.
Gradle uses whatever JDK it finds in your path. Alternatively, you can set the JAVA_HOME environment
variable to point to the installation directory of the desired JDK.
You must add GRADLE_HOME/bin to your PATH environment variable. "GRADLE_HOME" is the folder path where you have unpacked the gradle distribution. Here is the
example to set path.
/****** In MAC OS ******/
export PATH=$PATH:/Users/java2novice/softwares/gradle-2.1/bin
/****** In Windows OS ******/
SET PATH=%PATH%;C:\java2novice\gradle-2.1\bin
|
To check if gradle is properly installed or not run "gradle -v" command, and you should get similar response as shown below:
------------------------------------------------------------
Gradle 2.1
------------------------------------------------------------
Build time: 2014-09-08 10:40:39 UTC
Build number: none
Revision: e6cf70745ac11fa943e19294d19a2c527a669a53
Groovy: 2.3.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.6.0_65 (Apple Inc. 20.65-b04-462)
OS: Mac OS X 10.9.2 x86_64
|
Reference: Gradle Documentation
|