ankimal
ankimal

Reputation: 925

Custom Grails plugin dependency

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?

Upvotes: 2

Views: 1251

Answers (2)

Peter Ledbrook
Peter Ledbrook

Reputation: 4492

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).

Upvotes: 1

gareth_bowles
gareth_bowles

Reputation: 21150

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.

Upvotes: 0

Related Questions