Yeah, that is what I am doing currently. But is that annoying to have to
keep a list of java project name, and a list of groovy project name. What if
they have more variates?

2009/1/13 Hans Dockter <[email protected]>

>
> On Jan 13, 2009, at 10:40 AM, tao wen wrote:
>
>  Hi,
>>
>> I have a multi-project structure like this
>>
>> root
>> - D groovyPrj
>> - D javaPrj1
>> - D javaPrj2
>>
>> in the root project I shared some common dependencies and other default
>> settings (like test includes/excludes). What is the best way to let the
>> groovyPrj share the root settings as well? The difficulty is currently, I am
>> using
>>
>> subprojects {
>>  usePlugin('java')
>>  ...
>> }
>>
>> this will not work for groovy project.
>>
>
> As the Groovy plugin works on top of the Java plugin you can safely declare
> usePlugin('java') for the Groovy project, and later declare
> usePlugin('groovy'). It has the same effect as just declaring
> usePlugin('java').
>
> But you could also do something like:
>
> subprojects {
>  if (!project.name.startsWith('groovy')) {
>          usePlugin('java')
>  }
>  ...
> }
>
> - Hans
>
> --
> Hans Dockter
> Gradle Project lead
> http://www.gradle.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to