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