install gradle into CentOS

[root@localhost ~]# cd /usr/local/src/
[root@localhost src]# wget https://services.gradle.org/distributions/gradle-3.1-all.zip
[root@localhost src]# unzip gradle-3.1-all.zip 
[root@localhost src]# mv gradle-3.1 /usr/local/bin/

環境パスを追加

[root@localhost src]# vi ~/.bash_profile
export PATH=$PATH:/usr/local/bin/gradle-3.1/bin

反映

export PATH=$PATH:/usr/local/bin/gradle-3.1/bin

バージョン確認

[root@localhost src]# gradle -v

------------------------------------------------------------
Gradle 3.1
------------------------------------------------------------

Build time:   2016-09-19 10:53:53 UTC
Revision:     13f38ba699afd86d7cdc4ed8fd7dd3960c0b1f97

Groovy:       2.4.7
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_111 (Oracle Corporation 25.111-b15)
OS:           Linux 2.6.32-642.6.2.el6.x86_64 amd64