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/profile export M2_HOME=/usr/local/apache-maven-3.6.0 export NODE_HOME=/usr/local/node-v10.13.0-linux-x64 export GRADLE_HOME=/usr/local/gradle-4.10 export 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 -v Welcome 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 {}` block For more details see https://docs.gradle.org/4.10/release-notes.html ------------------------------------------------------------ Gradle 4.10 ------------------------------------------------------------ Build time: 2018-08-27 18:35:06 UTC Revision: ee3751ed9f2034effc1f0072c2b2ee74b5dce67d Kotlin DSL: 1.0-rc-3 Kotlin: 1.2.60 Groovy: 2.4.15 Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018 JVM: 1.8.0_181 (Oracle Corporation 25.181-b13) OS: Linux 3.10.0-514.el7.x86_64 amd64