문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top