./gradlewのアップグレード

./gradlewの中身をアップデートしたい。。。のでメモ

./gradlew --version

------------------------------------------------------------
Gradle 4.0.1
------------------------------------------------------------

Build time:   2017-07-07 14:02:41 UTC
Revision:     38e5dc0f772daecca1d2681885d3d85414eb6826

Groovy:       2.4.11
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_25 (Oracle Corporation 25.25-b02)
OS:           Mac OS X 10.13.2 x86_64

こんな感じになる。
gradle-wrapper.propertiesを書き換える

$ vi gradle/wrapper/gradle-wrapper.properties

- distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.1-bin.zip
+ distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip

書き換えたらコマンドを叩く

$ ./gradlew wrapper

バージョンを確認する

$ ./gradlew --version

------------------------------------------------------------
Gradle 4.4.1
------------------------------------------------------------

Build time:   2017-12-20 15:45:23 UTC
Revision:     10ed9dc355dc39f6307cc98fbd8cea314bdd381c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_25 (Oracle Corporation 25.25-b02)
OS:           Mac OS X 10.13.2 x86_64

以上!

このエントリーをはてなブックマークに追加

Leave a Reply

Your email address will not be published. Required fields are marked *