使用brew安装安装:
打开终端输入命令brew install gradle
进行安装
aiuiot:~ aiuiot$ brew install gradle
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
chafa
==> Updated Formulae
ammonite-repl camlp5 glances moreutils stubby
angular-cli direnv joplin ngspice subversion
ark etcd knot php@7.2 tox
bear faas-cli knot-resolver pushpin wireshark
botan getdns mas python-yq zeromq
==> Downloading https://services.gradle.org/distributions/gradle-5.1.1-all.zip
==> Downloading from https://downloads.gradle.org/distributions/gradle-5.1.1-all
################################### 49.1%
等待下载...
🍺 /usr/local/Cellar/gradle/5.1.1: 13,259 files, 234.9MB, built in 8 minutes 28 seconds
aiuiot:~ aiuiot$
安装成功,默认的安装位置为:
/usr/local/Cellar/gradle/5.1.1
验证是否安装成功:
我们可以通过查看gradle版本验证是否安装,输入命令gradle -v
:
Welcome to Gradle 5.1.1!
出现欢迎信息就代表gradle安装成功了!
网友评论