Speeding Up Grails Dependency Resolution
dependencies, grails
Solution
Maybe it is a little tricky but i would do the following
- Use the enviroment element of config dsl to add dependecy resolution only in test e production see [here][1]
- Put all your depenecy jar in the lib forlder of your grails app I would do it with maven dependecy:copy. I think it could be done in ivy too
- Add the jar file to your scm-ignore-list
Use a CI build system to check dependecy resolution is done right
[1]: http://www.grails.org/doc/1.3.x/guide/3.%20Configuration.html#3.2 Environments
Problem
We're currently working on an app with a relative large number of external dependencies, as we're integrating with a fairly complex existing system. The dependencies are working just fine, however, it still takes several minutes to resolve dependencies regardless of whether or not the dependencies are already in the Ivy cache. If the cache needs updating, it takes even longer of course. Is there any way we can speed this process up, or disable dependency resolution on every run? This is now becoming a huge productivity drain. Thanks!