티스토리 뷰

Gradle

Gradle 설치( brew )

구티맨 2021. 2. 4. 18:37

맥의 터미널에 brew install gradle 입력을 하면, gradle에 필요한 depedencies를 받아서 설치하고

 

gradle도 설치를 하게 됩니다.

$ brew install gradle
Error:
  homebrew-core is a shallow clone.
  homebrew-cask is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
These commands may take a few minutes to run due to the large size of the repositories.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
==> Downloading https://homebrew.bintray.com/bottles/openjdk-15.0.1.catalina.bottle.1.tar.g
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/243c608c22a4de274d20d7f58edfbc2e
######################################################################## 100.0%
==> Downloading https://services.gradle.org/distributions/gradle-6.8.1-all.zip
==> Downloading from https://downloads.gradle-dn.com/distributions/gradle-6.8.1-all.zip
######################################################################## 100.0%
==> Installing dependencies for gradle: openjdk
==> Installing gradle dependency: openjdk
==> Pouring openjdk-15.0.1.catalina.bottle.1.tar.gz
==> Caveats
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

openjdk is keg-only, which means it was not symlinked into /usr/local,
because it shadows the macOS `java` wrapper.

If you need to have openjdk first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc

For compilers to find openjdk you may need to set:
  export CPPFLAGS="-I/usr/local/opt/openjdk/include"

==> Summary
🍺  /usr/local/Cellar/openjdk/15.0.1: 614 files, 324.9MB
==> Installing gradle
🍺  /usr/local/Cellar/gradle/6.8.1: 11,239 files, 259MB, built in 23 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/charlieshin/Library/Caches/Homebrew/inetutils--1.9.4_2.mojave.bottle.tar.gz... (1MB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/libidn--1.35.mojave.bottle.tar.gz... (380.3KB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/ncurses--6.2.mojave.bottle.tar.gz... (2.3MB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/pcre--8.44.mojave.bottle.tar.gz... (1.8MB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/putty--0.73.mojave.bottle.tar.gz... (936.5KB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/tnftp--20070806.mojave.bottle.tar.gz... (110.9KB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/zsh--5.8.mojave.bottle.tar.gz... (3.6MB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/portable-ruby-2.6.3_1.yosemite.bottle.tar.gz... (9.1MB)
Removing: /Users/charlieshin/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz... (9.1MB)
Pruned 4 symbolic links from /usr/local
==> Caveats
==> openjdk
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

openjdk is keg-only, which means it was not symlinked into /usr/local,
because it shadows the macOS `java` wrapper.

If you need to have openjdk first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc

For compilers to find openjdk you may need to set:
  export CPPFLAGS="-I/usr/local/opt/openjdk/include"

 

설치가 완료되면, version 확인을 해보면 정상적으로 설치된 것을 확인 할 수 있습니다.

$ gradle --version

------------------------------------------------------------
Gradle 6.8.1
------------------------------------------------------------

Build time:   2021-01-22 13:20:08 UTC
Revision:     31f14a87d93945024ab7a78de84102a3400fa5b2

Kotlin:       1.4.20
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          15.0.1 (Oracle Corporation 15.0.1+9)
OS:           Mac OS X 10.15.7 x86_64

 

 

'Gradle' 카테고리의 다른 글

gradle 에러 : Could not find method compile() for arguments  (0) 2022.11.22
JAVA 정적 분석 프로그램( Spotbugs, PMD )  (0) 2021.01.19
GradleWrapper의 Gradle 버전 확인  (0) 2021.01.19
Gradle Wrapper  (0) 2020.05.26
Gradle SourceSets  (0) 2020.01.23
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함