Upgrade with the Gradle Wrapper, gradlew升级

springboot 2.0需要gradle 1+, 而自动构建的都是3.+,手动升级如下

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=4.3.1 --distribution-type=bin

Note that it is not necessary for Gradle to be installed to use the Gradle wrapper. The next invocation of gradlew or gradlew.bat will download and cache the specified version of Gradle.

$ ./gradlew tasks
Downloading https://services.gradle.org/distributions/gradle-4.3.1-bin.zip



本文转自Ryan.Miao博客园博客,原文链接:http://www.cnblogs.com/woshimrf/p/upgrade-gradlew.html,如需转载请自行联系原作者
上一篇:阿里云创新中心发布“淘富成真”赛道明星计划


下一篇:“阿里云创学院”二期开课,特色创业十二法为创新创业赋能