Complete tutorial on installing gradle on Linux

Linux installation gradle

1. Download gradle

https://gradle.org/install/

Select version download

image-20230530172433276

click to download

Insert image description here

You can also download historical versions here

https://services.gradle.org/distributions/

Insert image description here

2. Upload the package to the server. The package I downloaded here is 6.7. You can download the version you need.

image-20230530173421504

Unzip the zip package

unzip gradle-8.0.2-all.zip

3. Modify configuration file

vim /etc/profile

OK i enter edit mode

shift+G to enter the last line

Enter the following configuration

#gradle
GRADLE_HOME=/opt/program/gradle/gradle-6.7.1

export PATH= G R A D L E H O M E / b i n : GRADLE_HOME/bin: GRADLEHOME / am:PATH

image-20230530173637096

exit exit editing

:wqSave and launch

image-20230530173703988

Recompile configuration file

source /etc/profile

image-20230530173728653

4. Check whether it is successful

image-20230530173755843

Supongo que te gusta

Origin blog.csdn.net/itScholar001/article/details/130962619
Recomendado
Clasificación