Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.4-M1
-
Fix Version/s: 2.0-RC1
-
Component/s: Build System
-
Labels:None
Description
This is a clone of this issue which has been marked resolved in 1.4-M1, but I'm using this version and I still find that SNAPSHOT dependencies are not updated. I have the following dependency configured in BuildConfig.groovy
def esdVersion = '1.0-SNAPSHOT' compile("com.example:domain:$esdVersion", "com.example:managers:$esdVersion") { excludes 'commons-io' changing = true // should force Grails to check Maven repo for update instead of retrieving old version from Ivy cache }
If I rebuild the dependency (using Maven), and restart the Grails app, it loads the version of the dependency from the Ivy cache. The only way I can get the Grails app to pick up the newer version in the Maven repo is to delete the dependency from the Ivy cache.
And if you use 'grails compile --force-resolve' does it help?