1.下载
官方安装文档:https://gradle.org/install/
官方下载地址:http://services.gradle.org/distributions/gradle-4.10-bin.zip
2.安装配置
unzip gradle-4.10-bin.zip -d /usr/local/[root@node1 gradle-4.10]# tail -5 /etc/profileexport M2_HOME=/usr/local/apache-maven-3.6.0export NODE_HOME=/usr/local/node-v10.13.0-linux-x64export GRADLE_HOME=/usr/local/gradle-4.10export PATH=$PATH:$M2_HOME/bin:$NODE_HOME/bin:$GRADLE_HOME/bin[root@node1 gradle-4.10]# source /etc/profile[root@node1 gradle-4.10]# gradle -vWelcome to Gradle 4.10!Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC3 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` blockFor more details see https://docs.gradle.org/4.10/release-notes.html------------------------------------------------------------Gradle 4.10------------------------------------------------------------Build time: 2018-08-27 18:35:06 UTCRevision: ee3751ed9f2034effc1f0072c2b2ee74b5dce67dKotlin DSL: 1.0-rc-3Kotlin: 1.2.60Groovy: 2.4.15Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018JVM: 1.8.0_181 (Oracle Corporation 25.181-b13)OS: Linux 3.10.0-514.el7.x86_64 amd64