|
|
Hi,
I have a question with regard to dependency/plugin scopes especially when it comes to plugins. I have had a look at various postings on these mailing lists, elsewhere and been through the grails doc and other resources but nothing seems to answer my question/problem! Within the application I am working on we have a plugin which provides a number of build time scripts. This plugin itself depends on the grails-svn-plugin v1.0.2 and this plugin is used within a few of the scripts.
The issue happens when I include the build time scripts plugin within another grails project as a build time scope dependency and attempt to use it. I end up with ClassNotFoundException for the SvnClient class of the plugin unless I set the svn plugin as compile scope within the project im attempting to run the script on. Why is it a compile time dependency rather than a build time when its needed by build time scope scripts?
I have the svn plugin defined within the dependsOn section of the *GrailsPlugin.groovy and I have tried build, compile and runtime scopes separately (cleaned and rebuilt between each attempt) within the build scripts plugin to see if the different scopes made any difference but with no success.
Best Regards,
Jamie
|