views:

247

answers:

2

I have a custom grails plugin I m trying to develop and set this

def dependsOn = [dataSource: "1.0"]

in the Plugin script.

Now, my custom plugin loads just fine but I dont see tomcat installed in my application. How does one install a dependency plugin (prompt the user to say yes/no)? Is this even possible?

A: 

Not sure what Grails version you're using, but Grails 1.2 has much improved dependency management for plugins and apps; see this post by Graeme Rocher for details.

gareth_bowles
A: 

Once your plugin is published, this should work. Try:

grails install-plugin nimble

You will see that both Nimble and Shiro are installed (Nimble depends on Shiro).

Peter Ledbrook
Well what if the plugin is not published?
ankimal
It will work if you use install-plugin with a file or a URL. It won't work if you include the plugin via the in-place mechanism (`grails.plugin.location...` in BuildConfig.groovy).
Peter Ledbrook