centos安装gradle,极简

下载 gradle

cd /home/gb/soft
wget -c https://downloads.gradle.org/distributions/gradle-2.5-all.zip
安装 gradle

unzip gradle-2.5-all.zip
mv gradle-2.5 /usr/local/gradle
创建配置文件并加载

echo 'export GRADLE_HOME=/usr/local/gradle' > /etc/profile.d/gradle.sh
echo 'export PATH=$PATH:$GRADLE_HOME/bin'  >> /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
查看 gradle 版本信息

[root@taxkiz ~]# gradle -v

------------------------------------------------------------
Gradle 2.5
------------------------------------------------------------

Build time:   2015-07-08 07:38:37 UTC
Build number: none
Revision:     093765bccd3ee722ed5310583e5ed140688a8c2b

Groovy:       2.3.10
Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM:          1.6.0_45 (Sun Microsystems Inc. 20.45-b01)
OS:           Linux 3.10.0-229.el7.x86_64 amd64

你可能感兴趣的:(Linux)