LoginSignup
1
0

More than 3 years have passed since last update.

debian10 に gradleをインストールする

Posted at

前提 Java SE8以降がインストールされている

gradleをダウンロード

$ wget https://services.gradle.org/distributions/gradle-6.3-bin.zip -P /tmp

解凍する

$ sudo unzip -d /opt/gradle /tmp/gradle-*.zip

中身を確認

$ ls /opt/gradle/gradle-*

bin  init.d  lib  LICENSE  NOTICE  README

PATH環境変数の構成

$ touch /etc/profile.d/gradle.sh
$ vi /etc/profile.d/gradle.sh

作成したgradle.shに追記

gradle.sh
export GRADLE_HOME=/opt/gradle/gradle-6.3
export PATH=${GRADLE_HOME}/bin:${PATH}

実行可能にする

$ sudo chmod +x /etc/profile.d/gradle.sh

環境変数を読み込み&インストール確認

下のようなメッセージが出れば完了

$ source /etc/profile.d/gradle.sh
$ gradle -v

Welcome to Gradle 6.3!

Here are the highlights of this release:
 - Java 14 support
 - Improved error messages for unexpected failures

For more details see https://docs.gradle.org/6.3/release-notes.html


------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.9.1 (Debian 11.0.9.1+1-post-Debian-1deb10u2)
OS:           Linux 5.4.72-microsoft-standard-WSL2 amd64

参考

1
0
0

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
1
0