Gradle 5.4 deployment

阅读更多

Step 1. Download the latest Gradle distribution

The current Gradle release is version 5.4, released on 16 Apr 2019. The distribution zip file comes in two flavors:

  • Binary-only
  • Complete, with docs and sources

https://gradle.org/next-steps/?version=5.4&format=bin

Step 2. Unpack the distribution

Linux & MacOS users

Unzip the distribution zip file in the directory of your choosing, e.g.:

[wls81@master Downloads]$ unzip -d /home/wls81/tools/ gradle-5.4-bin.zip

[wls81@master tools]$ ln -s gradle-5.4 gradle

Step 3. Configure your system environment

vi /etc/profile

export GRADLE_HOME=/opt/tools/gradle

export PATH=$PATH:$GRADLE_HOME/bin

source /etc/profile

Step 4. Verify your installation

Open a console (or a Windows command prompt) and run gradle -v to run gradle and display the version, e.g.:

[wls81@master tools]$ source /etc/profile
[wls81@master tools]$ gradle -v

Welcome to Gradle 5.4!

Here are the highlights of this release:
- Run builds with JDK12
- New API for Incremental Tasks
- Updates to native projects, including Swift 5 support

For more details see https://docs.gradle.org/5.4/release-notes.html


------------------------------------------------------------
Gradle 5.4
------------------------------------------------------------

Build time: 2019-04-16 02:44:16 UTC
Revision: a4f3f91a30d4e36d82cc7592c4a0726df52aba0d

Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_201 (Oracle Corporation 25.201-b09)
OS: Linux 3.10.0-957.10.1.el7.x86_64 amd64

Upgrade with the Gradle Wrapper

If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the wrapper task, specifying the desired Gradle version:

$ ./gradlew wrapper --gradle-version=5.4 --distribution-type=bin

你可能感兴趣的:(Gradle)