Debian11安装Gradle 7.1.1

下载Gradle 7.1.1


https://gradle.org/releases/


解压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

出现这个即为成功

文章作者: Caesar
文章链接: https://pcnto.com/daily-learning/35-debian11-install-gradle.html
版权声明: 本博客所有文章除特别声明外,转载请注明来自 Peng blog

如果您喜欢本站,你可以点击主页广告以示支持,谢谢。

广告是本站收益的来源希望您能够谅解。

Comments 2

Offline
Carl
Carl 2022 December 18 22:34

学到了,多谢。下次出一个配置code-server的教程

Offline
Paul
Paul 2023 February 17 19:43

学习了,可以打包apk