Hi all,

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?

Cheers,
Merlyn

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

    http://xircles.codehaus.org/manage_email


Reply via email to