My workflow consisted of the following steps, which have to be repeated every time:
- change some plugin code
- grails package-plugin
- grails install-plugin
- grails run-app
- check plugin changes in main app
Configure main application for your in-place plugin
You need a plugin under development and a main application where you would like to use it. There you just add the following to your BuildConfig.groovy:grails-app/conf/BuildConfig.groovy
grails.plugin.location."${pluginName}" = "${pathToYourPlugin}"
Replace the plugin name placeholder with your plugin name and the path to the root directory of your plugin. Check "Specifiying Plugin Locations" in the grails docs Creating and Installing Plugins for further information.
Example for my AdminPanelPlugin used by the AdminTest application:
grails-app/conf/BuildConfig.groovy
grails.plugin.location."AdminPanelPlugin" = "/Users/surelyplus/Documents/workspace/AdminPanelPlugin"
Even IntelliJ has great support for this, so you can see the plugin next to your main app in the Grails View.