Gradle & Java
Gradle & Java
Gradle Build Tool I Modern Open Source Build Automation
SDKMAN
$ sdk install gradle 6.6.1
The Software Development Kit Manager
brew
$ brew install gradle
Step 1. Download the latest Gradle distribution
# Step 2. Unpack the distribution
$ mkdir /opt/gradle
$ unzip -d /opt/gradle gradle-6.6.1-bin.zip
$ ls /opt/gradle/gradle-6.6.1
LICENSE NOTICE bin getting-started.html init.d lib media
# Step 3. Configure your system environment
$ export PATH=$PATH:/opt/gradle/gradle-6.6.1/bin
# Step 4. Verify your installation
$ gradle -v
------------------------------------------------------------
Gradle 6.6.1
------------------------------------------------------------
Upgrade with the Gradle Wrapper
$ ./gradlew wrapper --gradle-version=6.6.1 --distribution-type=bin
$ ./gradlew tasks
Downloading https://services.gradle.org/distributions/gradle-6.6.1-bin.zip
...
java
➜ ~ java --version
java 11.0.2 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
➜ ~ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
➜ ~ java -V
Unrecognized option: -V
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
➜ ~ java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
refs
Gradle Blog
Gradle
https://www.imooc.com/u/1066707/notepad/833
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/13686898.html
未经授权禁止转载,违者必究!