Dead simple dependencies with grails + ivy
It is unbelievably easy to integrate Ivy as a dependency manager for your grails application. Just a couple of steps really (Note: this is for grails >= 1.0 as < 1.0 had ivy integrated):
- Install the Ivy plugin:
-
grails install-plugin ivy
This will create an ivy.xml and an ivyconf.xml, and place them in the project root. I modified my ivy.xml thusly:
-
<ivy-module version="1.0">
-
<info organisation="codehaus" module="grails"/>
-
<dependencies>
-
<dependency org="mysql" name="mysql-connector-java" rev="5.0.5"/>
-
</dependencies>
-
</ivy-module>
-
- You can then run the following command and ivy will place your dependencies in the lib folder of your project root:
-
grails get-dependencies
-
That’s it! Now I just need to figure out why they don’t really use this as a selling point for grails. The only thing I can figure is that there are so many great features it would get lost in the list anyway.


November 12th, 2008 at 5:58 pm
3ohxj2gpq3u7vir4