1、下载gradle:https://downloads.gradle.org/distributions/gradle-2.4-all.zip
2、OSX下配置gradle
localhost:~ username$ vim /Users/username/.bash_profile
GRADLE_HOME=/Users/username/java/gradle
2 export GRADLE_HOME
3 export PATH=$PATH:$GRADLE_HOME/bin
~
localhost:~ username$ source /Users/username/.bash_profile
localhost:~ username$ gradle -version
------------------------------------------------------------
Gradle 2.4
------------------------------------------------------------
Build time: 2015-05-05 08:09:24 UTC
Build number: none
Revision: 5c9c3bc20ca1c281ac7972643f1e2d190f2c943c
Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.4 compiled on April 29 2014
JVM: 1.7.0_76 (Oracle Corporation 24.76-b04)
OS: Mac OS X 10.10.3 x86_64
https://docs.gradle.org/current/userguide/tutorial_using_tasks.html