grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

grails version lookup error

Open zyro23 opened this issue 9 years ago • 2 comments

RunCommand expects a gradle.properties containing a grailsVersion property in the working directory.

this is wrong in various scenarios, including:

  • gradle.properties does not exist at all because user prefers to set the versions directly in build.gradle
  • multi-project builds where only the root project contains gradle.properties but the app is launched from its submodule directory (which again is mandatory for correct exploded multi-module reloading)

i think it would be ok to use a wrapper with a static grails version - just like gradle does for gradlew?

zyro23 avatar Dec 03 '16 11:12 zyro23

Where would you suggest specifying the version?

For the second item, it could be modified to search the parent folder as well. It also uses the file to store the grails wrapper version so it knows when a new version has been released.

jameskleeh avatar Dec 03 '16 15:12 jameskleeh

i was thinking about a grails-wrapper.properties, similar to gradle-wrapper.jar / gradle-wrapper.properties.

zyro23 avatar Dec 03 '16 17:12 zyro23