grails-core
grails-core copied to clipboard
grails version lookup error
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.propertiesbut 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?
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.
i was thinking about a grails-wrapper.properties, similar to gradle-wrapper.jar / gradle-wrapper.properties.