16
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gradleのインストール

Last updated at Posted at 2014-10-22

centos

sudo su - root

wget -N https://services.gradle.org/distributions/gradle-2.0-all.zip
unzip gradle-2.0-all.zip -d /opt/gradle
ln -sfn /opt/gradle/gradle-2.0 /opt/gradle/latest
printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh

mac

brew update
brew install gradle

インストールできてるか確認

gradle -v

gvmを使う

curl -s get.gvmtool.net | bash
gvm list gradle
gvm install gradle

gradleのversionを指定する

gvm install gradle 2.0

備考

  • jenkinsで使う場合は jenkinsプラグインを使うとインストールまで自動でやってくれる。
16
14
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?