mac install gradle

 gradle 官方 安装文档

然后需要安装 homebrew 一个mac的补充包

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

装完: 

HEAD is now at 56458f0 Merge pull request #3277 from sjackman/audit-notable

==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

######################################################################## 100.0%

==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

==>Tapping homebrew/core

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

remote: Counting objects: 4600, done.

remote: Compressing objects: 100% (4383/4383), done.

remote: Total 4600 (delta 34), reused 341 (delta 10), pack-reused 0

Receiving objects: 100% (4600/4600), 3.83 MiB | 15.00 KiB/s, done.

Resolving deltas: 100% (34/34), done.

Checking connectivity... done.

Tapped 4378 formulae (4,646 files, 11.9MB)

==>Cleaning up /Library/Caches/Homebrew...

==>Migrating /Library/Caches/Homebrew to /Users/Patrick/Library/Caches/Homebrew...

==>Deleting /Library/Caches/Homebrew...

Already up-to-date.

==>Installation successful!

==>Homebrew has enabled anonymous aggregate user behaviour analytics.

Read the analytics documentation (and how to opt-out) here:

https://docs.brew.sh/Analytics.html

==>Next steps:

- Run `brew help` to get started

- Further documentation:

https://docs.brew.sh

装完之后 , 运行 brew update && brew install gradle


finish 之后, 可以 gradle -v 验证

------------------------------------------------------------

Gradle 4.2.1

------------------------------------------------------------

Build time:2017-10-02 15:36:21 UTC

Revision:a88ebd6be7840c2e59ae4782eb0f27fbe3405ddf

Groovy:2.4.12

Ant:Apache Ant(TM) version 1.9.6 compiled on June 29 2015

JVM:1.8.0_144 (Oracle Corporation 25.144-b01)

OS:Mac OS X 10.10.1 x86_64


gradle install 地址:

brew info gradle

gradle: stable 4.2.1

Build system based on the Groovy language

https://www.gradle.org/

/usr/local/Cellar/gradle/4.2.1 (180 files, 75.6MB) *

Built from source on 2017-10-11 at 19:39:43

From:https://github.com/Homebrew/homebrew-core/blob/master/Formula/gradle.rb

==>Requirements

Required:java >= 1.7

==>Options

--with-all

Installs Javadoc, examples, and source in addition to the binaries

你可能感兴趣的:(mac install gradle)