Alex,

maybe sth like:
def groovyProjects() {
  subprojects.findAll { project -> project.name != 'docs' }
}
and then you can do with "groovyProjects()" whatever you want

see the main build.gradle file for some inspiration
http://github.com/gradle/gradle/blob/master/build.gradle

-- 
Regards / Pozdrawiam
Tomek Kaczanowski






2010/3/27 Alex Shneyderman <[email protected]>:
> Hi, all!
>
> I am trying to figure out how the build system of a project I am
> working on (ant based) would look like in Gradle. Currently, system
> has tons of fairly small modules. Production deploys all of them, but
> during development we deploy only a hand-full of modules. Current ant
> based system is able to produce a set of deployable artifact based on
> command line parameter passed to the build. I can include as many
> modules as I would like or we have some shortcuts that can deploy a
> pre-defined/pre-calculated set of modules.
>
> The question is how do I configure these subsets in Gradle? I am
> reading about settings.gradle but it seems that you have only one
> chance of telling gradle of what modules are in this project. It feels
> like I would need something like configuration of dependencies, in the
> settings.gradle. So if I want to build a subset of modules it could be
> specified in some form and picked up by Gradle. Or maybe there is a
> way already and I am not seeing it?  Any pointers, or samples of this
> being done (if done already) would most appreciated.
>
> Cheers,
> Alex.
>
> ---------------------------------------------------------------------
> 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


Reply via email to