Update Gradle in Grails project

六月ゝ 毕业季﹏ 提交于 2021-01-28 14:20:15

问题


I am using Grails 3.0.5

After I create a project... at root project has folder .gradle with 2.3 version...

How to update that Gradle version?

I tried to download Grails 3.0.9 and create a new project..but it still use Gradle 2.3 version..

I tried to download Gradle 2.6 from this link , because I am using windows... I tried to run gradlew.bat ... and recreate-app with Grails 3.0.9 version...and i still get a new project with Gradle 2.3


回答1:


That's defined in gradle.properties. If you change the version there (I recommend using 2.8 for the new features and speed improvements) you can use the wrapper that's there from Gradle 2.3 to generate a new wrapper for whatever version you're updating to; just run

gradlew.bat wrapper

or

./gradlew wrapper

if you were using Linux or OSX, and it will update the gradlew and gradlew.bat scripts, and the wrapper files under gradle/wrapper.



来源:https://stackoverflow.com/questions/33360256/update-gradle-in-grails-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!