On 25/06/2011, at 2:42 AM, M A wrote:

> I have a Gradle project that groups the subprojects into folders. For
> that I needed to define "leafprojects":
> 
> leafprojects = { closure ->
>       subprojects { project ->
>               if (!project.subprojects) {
>                       closure.delegate = project
>                       closure.resolveStrategy = Closure.DELEGATE_FIRST
>                       closure(project)
>               }
>       }
> }
> 
> and then...
> 
> leafprojects {
>       apply plugin: 'java'
> 
>       // .....
> }
> 
> It seems to me that this is a common enough need. Or am I missing something?

Quite possibly, can you please raise an issue and we can action it from there.

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to