Mac上安装gradle
http://www.jianshu.com/p/9e5d5b940344
将下载下来的gradle-2.12-all.zip解压缩后,并移动到/usr/local/目录
打开终端,输入open -e .bash_profile,打开.bash_profile文件
配置环境变量,在文件中输入以下命令:
GRADLE_HOME=/usr/local/gradle-2.12;
export GRADLE_HOME
export PATH=${PATH}:$GRADLE_HOME/bin
最后就是更新环境变量,终端输入
source .bash_profile
gradle -v查看是否安装成功!
export M2_HOME=/Users/kokia/kokia_Web/apache-maven-3.3.9
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
export GRADLE_HOME=/usr/local/gradle-2.12
export MYSQL_HOME=/usr/local/mysql/bin
export PATH=$PATH:$GRADLE_HOME/bin:$M2_HOME/bin:$JAVA_HOME/bin:$MYSQL_HOME/bin