Now that the “grails install-plugin …” command is deprecated, I struggled to figure out how to add a local plugin to my Grails application (for stuff not in public repositories) and this is what I came up with to get it to work.
– in grails-app/conf/BuildConfig.groovy
- Change the value of grails.project.dependency.resolver from “maven” (default) to “ivy”
- In the repositories section, add the following as the first repository defined (updating the actual path to the path the plugins you want to load are stored in on your own machine)
flatDir name:’myRepo’, dirs:’C:/Sites/grails/plugins’
- Add the call to your plugin in the plugins section as normal