Install Gradle and configuration in mac environment
Gradle official website
gradle download address
- macOS can be installed using brew-
Homebrew
is “the missing package manager for macOS”.
brew install gradle
- Environment configuration
# Gradle
export GRADLE=/usr/local/bin/gradle
export PATH=$PATH:$GRADLE/bin
# Gradle END
- The version check shows that the version number is successful
gradle -v
# 有出现如下的信息, 说明安装成功, 环境配置成功
------------------------------------------------------------
Gradle 6.2.2
------------------------------------------------------------