xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Gradle & Java

Gradle & Java

Gradle Build Tool I Modern Open Source Build Automation

https://gradle.org/

https://gradle.org/install/

SDKMAN

$ sdk install gradle 6.6.1

The Software Development Kit Manager

https://sdkman.io/

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

https://blog.gradle.org/

https://gradle.com/training/

https://guides.gradle.org/

Gradle

https://www.imooc.com/u/1066707/notepad/833



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-09-17 19:00  xgqfrms  阅读(207)  评论(1编辑  收藏  举报