|
I am trying to split my application in different plugins
I have crs-desktop that dependsOn crs-ui and crs-auth crs-ui dependsOn jquery and jquery-ui and crs-auth depends on shiro crs-desktop is also a plugin but for now I am using it as an application. I have added to my BuildConfig.groovy of crs-desktop those 2 lines grails.plugin.location.'crs-ui' = "../crs-ui" grails.plugin.location.'crs-auth' = "../crs-auth" In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn line def dependsOn = [ shiro: "1.0.1", mail: "0.6 > *", ] But when I try to compile crs-desktop I get compilation errors originating from code in crs-auth. The only way to get ride of those errors is to include shiro and mail directly in crs-desktop What am I missing? I am using grails-1.3.5 and grails-1.3.6 Thanks in advance Pascal --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
grails.plugin.location is just a configuration option for installed/required plugins. It doesn't create a dependency, just specifies where they are. You still need to add dependencies to dependsOn if it's an exported dependency, and install it via install-plugin if you'll just use it for development, e.g. code-coverage.
Burt > I am trying to split my application in different plugins > > I have crs-desktop that dependsOn crs-ui and crs-auth > crs-ui dependsOn jquery and jquery-ui > and crs-auth depends on shiro > > crs-desktop is also a plugin but for now I am using it as an application. > > I have added to my BuildConfig.groovy of crs-desktop those 2 lines > > grails.plugin.location.'crs-ui' = "../crs-ui" > grails.plugin.location.'crs-auth' = "../crs-auth" > > In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn line > > def dependsOn = [ shiro: "1.0.1", > mail: "0.6 > *", > ] > > But when I try to compile crs-desktop I get compilation errors originating > from code in crs-auth. The only way to get ride of those errors is to include > shiro and mail directly in crs-desktop > > What am I missing? I am using grails-1.3.5 and grails-1.3.6 > > Thanks in advance > > Pascal > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Thanks Burt. What would be the best way to develop an application modularized
in plugins and be able to test each plugin without having to include manually all dependencies. Can grails do this for me? On Monday, December 27, 2010 05:36:12 pm you wrote: > grails.plugin.location is just a configuration option for > installed/required plugins. It doesn't create a dependency, just specifies > where they are. You still need to add dependencies to dependsOn if it's an > exported dependency, and install it via install-plugin if you'll just use > it for development, e.g. code-coverage. > > Burt > > > I am trying to split my application in different plugins > > > > I have crs-desktop that dependsOn crs-ui and crs-auth > > crs-ui dependsOn jquery and jquery-ui > > and crs-auth depends on shiro > > > > crs-desktop is also a plugin but for now I am using it as an application. > > > > I have added to my BuildConfig.groovy of crs-desktop those 2 lines > > > > grails.plugin.location.'crs-ui' = "../crs-ui" > > grails.plugin.location.'crs-auth' = "../crs-auth" > > > > In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn line > > > > def dependsOn = [ shiro: "1.0.1", > > > > mail: "0.6 > *", > > > > ] > > > > But when I try to compile crs-desktop I get compilation errors > > originating from code in crs-auth. The only way to get ride of those > > errors is to include shiro and mail directly in crs-desktop > > > > What am I missing? I am using grails-1.3.5 and grails-1.3.6 > > > > Thanks in advance > > > > Pascal > > > > --------------------------------------------------------------------- > > > > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
No, you will need to declare the dependencies.
On 28/12/2010, at 12:15 PM, Pascal DeMilly <[hidden email]> wrote: > Thanks Burt. What would be the best way to develop an application modularized > in plugins and be able to test each plugin without having to include manually > all dependencies. Can grails do this for me? > > On Monday, December 27, 2010 05:36:12 pm you wrote: >> grails.plugin.location is just a configuration option for >> installed/required plugins. It doesn't create a dependency, just specifies >> where they are. You still need to add dependencies to dependsOn if it's an >> exported dependency, and install it via install-plugin if you'll just use >> it for development, e.g. code-coverage. >> >> Burt >> >>> I am trying to split my application in different plugins >>> >>> I have crs-desktop that dependsOn crs-ui and crs-auth >>> crs-ui dependsOn jquery and jquery-ui >>> and crs-auth depends on shiro >>> >>> crs-desktop is also a plugin but for now I am using it as an application. >>> >>> I have added to my BuildConfig.groovy of crs-desktop those 2 lines >>> >>> grails.plugin.location.'crs-ui' = "../crs-ui" >>> grails.plugin.location.'crs-auth' = "../crs-auth" >>> >>> In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn line >>> >>> def dependsOn = [ shiro: "1.0.1", >>> >>> mail: "0.6 > *", >>> >>> ] >>> >>> But when I try to compile crs-desktop I get compilation errors >>> originating from code in crs-auth. The only way to get ride of those >>> errors is to include shiro and mail directly in crs-desktop >>> >>> What am I missing? I am using grails-1.3.5 and grails-1.3.6 >>> >>> Thanks in advance >>> >>> Pascal >>> >>> --------------------------------------------------------------------- >>> >>> To unsubscribe from this list, please visit: >>> http://xircles.codehaus.org/manage_email >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi
I'm also just starting to modularize a big:ish app and have run into the same issue. Curious about this JIRA http://jira.codehaus.org/browse/GRAILS-6380 which I thought meant that transitive dependencies should work for plugins (I thought this paritcular JIRA was for fixing this for in-place plugins). What you are saying about having to declare the dependencies is what I'm experiencing, but just wanted to check that there isn't something I've missed because it pains me to have to have duplicate dependency definitions all over the place... Cheers, Micke On 28 December 2010 07:35, [hidden email] <[hidden email]> wrote: > No, you will need to declare the dependencies. > > On 28/12/2010, at 12:15 PM, Pascal DeMilly <[hidden email]> wrote: > >> Thanks Burt. What would be the best way to develop an application modularized >> in plugins and be able to test each plugin without having to include manually >> all dependencies. Can grails do this for me? >> >> On Monday, December 27, 2010 05:36:12 pm you wrote: >>> grails.plugin.location is just a configuration option for >>> installed/required plugins. It doesn't create a dependency, just specifies >>> where they are. You still need to add dependencies to dependsOn if it's an >>> exported dependency, and install it via install-plugin if you'll just use >>> it for development, e.g. code-coverage. >>> >>> Burt >>> >>>> I am trying to split my application in different plugins >>>> >>>> I have crs-desktop that dependsOn crs-ui and crs-auth >>>> crs-ui dependsOn jquery and jquery-ui >>>> and crs-auth depends on shiro >>>> >>>> crs-desktop is also a plugin but for now I am using it as an application. >>>> >>>> I have added to my BuildConfig.groovy of crs-desktop those 2 lines >>>> >>>> grails.plugin.location.'crs-ui' = "../crs-ui" >>>> grails.plugin.location.'crs-auth' = "../crs-auth" >>>> >>>> In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn line >>>> >>>> def dependsOn = [ shiro: "1.0.1", >>>> >>>> mail: "0.6 > *", >>>> >>>> ] >>>> >>>> But when I try to compile crs-desktop I get compilation errors >>>> originating from code in crs-auth. The only way to get ride of those >>>> errors is to include shiro and mail directly in crs-desktop >>>> >>>> What am I missing? I am using grails-1.3.5 and grails-1.3.6 >>>> >>>> Thanks in advance >>>> >>>> Pascal >>>> >>>> --------------------------------------------------------------------- >>>> >>>> To unsubscribe from this list, please visit: >>>> http://xircles.codehaus.org/manage_email >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Yes that right. http://jira.codehaus.org/browse/GRAILS-6380 says it is fixed but my experience shows it is not in 1.3.6 which is truly a bummer Any idea what could be wrong or what I missed Thanks Pascal On Thursday 30 December 2010, Mikael Andersson wrote: > Hi > > I'm also just starting to modularize a big:ish app and have run into > the same issue. > > Curious about this JIRA http://jira.codehaus.org/browse/GRAILS-6380 > which I thought meant that transitive dependencies should work for > plugins (I thought this paritcular JIRA was for fixing this for > in-place plugins). > > What you are saying about having to declare the dependencies is what > I'm experiencing, but just wanted to check that there isn't something > I've missed because it pains me to have to have duplicate dependency > definitions all over the place... > > Cheers, > Micke > > On 28 December 2010 07:35, [hidden email] <[hidden email]> wrote: > > No, you will need to declare the dependencies. > > > > On 28/12/2010, at 12:15 PM, Pascal DeMilly <[hidden email]> > >> Thanks Burt. What would be the best way to develop an application > >> modularized in plugins and be able to test each plugin without having to > >> include manually all dependencies. Can grails do this for me? > >> > >> On Monday, December 27, 2010 05:36:12 pm you wrote: > >>> grails.plugin.location is just a configuration option for > >>> installed/required plugins. It doesn't create a dependency, just > >>> specifies where they are. You still need to add dependencies to > >>> dependsOn if it's an exported dependency, and install it via > >>> install-plugin if you'll just use it for development, e.g. > >>> code-coverage. > >>> > >>> Burt > >>> > >>>> I am trying to split my application in different plugins > >>>> > >>>> I have crs-desktop that dependsOn crs-ui and crs-auth > >>>> crs-ui dependsOn jquery and jquery-ui > >>>> and crs-auth depends on shiro > >>>> > >>>> crs-desktop is also a plugin but for now I am using it as an > >>>> application. > >>>> > >>>> I have added to my BuildConfig.groovy of crs-desktop those 2 lines > >>>> > >>>> grails.plugin.location.'crs-ui' = "../crs-ui" > >>>> grails.plugin.location.'crs-auth' = "../crs-auth" > >>>> > >>>> In crs-auth I have added to CrsAuthGrailsPlugin.groovy a dependsOn > >>>> line > >>>> > >>>> def dependsOn = [ shiro: "1.0.1", > >>>> > >>>> mail: "0.6 > *", > >>>> > >>>> ] > >>>> > >>>> But when I try to compile crs-desktop I get compilation errors > >>>> originating from code in crs-auth. The only way to get ride of those > >>>> errors is to include shiro and mail directly in crs-desktop > >>>> > >>>> What am I missing? I am using grails-1.3.5 and grails-1.3.6 > >>>> > >>>> Thanks in advance > >>>> > >>>> Pascal > >>>> > >>>> --------------------------------------------------------------------- > >>>> > >>>> To unsubscribe from this list, please visit: > >>>> http://xircles.codehaus.org/manage_email > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe from this list, please visit: > >>> > >>> http://xircles.codehaus.org/manage_email > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
