Reputation: 11307
My plugin needs jquery-ui
plugin to run. How do I declare this in the plugin's BuildConfig.groovy
?
I'm expecting that grails install-plugin /my/plugin.zip
should install jquery-ui
as well. This is what I tried but it doesn't work:
plugins {
compile ":jquery-ui:1.8.24"
}
Upvotes: 2
Views: 933
Reputation: 5538
If you are in Grails 2.2.x, I suspect that you are having the new Grails resolve dependency resolution mechanism which results into issues explained here by @sconnelly and here in the Dependency resolution section.
Assuming your first plugin is using jquery ui and probably resource plugin and all your modules are correctly defined in plugin resources configuration(myResources.groovy) file, for quick fix try to set legacyResolve = true in your application buildConfig. I made a small example here Let me know if this resolved your issue
Upvotes: 2
Reputation:
This is the correct way of declaring dependencies. Don't use install-plugin
since it's a deprecated command.
What you may be missing is to declare the jquery-ui in your view:
<r:require module="jquery-ui"/>
This will add the javascript and css files of JQuery UI.
Upvotes: 0