Debian11安装Gradle 7.1.1
下载Gradle 7.1.1
解压Grale
unzip gradle-7.1.1-bin.zip
创建目录
mkdir /opt/gradle
移动目录
mv gradle-7.1.1 /opt/gradle
配置环境
vi /etc/profile
在最下面写入
export GRADLE_HOME=/opt/gradle/gradle-7.1.1
export PATH=${GRADLE_HOME}/bin:${PATH}
保存完成后执行
source /etc/profile
最后用命令验证
gradle -v
Welcome to Gradle 7.1.1!
Here are the highlights of this release:
- Faster incremental Java compilation
- Easier source set configuration in the Kotlin DSL
For more details see https://docs.gradle.org/7.1.1/release-notes.html
------------------------------------------------------------
Gradle 7.1.1
------------------------------------------------------------
Build time: 2021-07-02 12:16:43 UTC
Revision: 774525a055494e0ece39f522ac7ad17498ce032c
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_341 (Oracle Corporation 25.341-b10)
OS: Linux 5.13.19-6-pve amd64
出现这个即为成功
Comments 2