Gradle build tools

A, Gradle Profile

Gradle is a project based on Apache Ant Apache Maven automation concept and construction tools. It uses a Groovy-based domain-specific language to declare the project settings, rather than the traditional XML.
It supports the current language is limited to Java, Groovy and Scala, plan for the future will support more languages.

Two, Gradle installation

Click to go to the download page Gradle

2.1 installed in Windows

Decompress, configure the environment variables.

2.2 mounted in CentOS 7

# 强烈建议建一个文件安装各个版本的 Gradle
mkdir /opt/gradle
# 解压缩
unzip -d /opt/gradle gradle-5.5.1-bin.zip

# 编辑 /etc/profile 配置环境变量,在文本的末尾添加如下内容:
export GRADLE_HOME=/opt/gradle/gradle-5.5.1
export PATH=$GRADLE_HOME/bin:$PATH

# 刷新配置文件
source /etc/profile

# 查看 Gradle 版本
gradle -version

Guess you like

Origin www.cnblogs.com/vivfeng/p/11267196.html
Recommended