Question

I'm building both a Grails app as well as a plugin that the app will use as a dependency. I need a way to make changes to the plugin, publish it locally, build the app (using the new version of the plugin - SNAPSHOT) and then do a grails run-app to pick up all the changes.

I also need a way to publish the plugin to a remote Artifactory repo and have the Grails app pick up the "release" (non-SNAPSHOT) version of the plugin. Any ideas as to how I could accomplish this?

Was it helpful?

Solution

While the plugin is under development, make it a local plugin, so that you don't have to redeploy to a repo after every change. For example, for a plugin named 'shiro' whose source code is at /dev/plugins/grails-shiro, add the following to Config.groovy

grails.plugin.location.shiro = "/dev/plugins/grails-shiro"

When a version of the plugin is ready to be released, use the release plugin to deploy it to a remote repo.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top