Mac上配置Gradle

手工安装

  1. 下载Gradle;
  2. 解压:
Yann-MBP:software yann$ tar -xf gradle-3.5-bin.zip 
Yann-MBP:software yann$ cd gradle-3.5
Yann-MBP:gradle-3.5 yann$ ls
LICENSE         bin         init.d          media
NOTICE          getting-started.html    lib
  1. 设置环境变量
Yann-MBP:gradle-3.5 yann$ export PATH=$PATH:~/Work/software/gradle-3.5/bin/
  1. 查看是否安装成功:
Yann-MBP:gradle-3.5 yann$ gradle -version
 ------------------------------------------------------------
Gradle 3.5
 ------------------------------------------------------------
Build time:   2017-04-10 13:37:25 UTC
Revision:     b762622a185d59ce0cfc9cbc6ab5dd22469e18a6
Groovy:       2.4.10
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Mac OS X 10.12.4 x86_64

你可能感兴趣的:(Mac上配置Gradle)