Roger,

I still don't understand why this is not enough (I haven't tried to
compile this):

def javaProjects() {
    subprojects.findAll { project -> (project.name != 'PROJECT_X' &&
project.name != 'PROJECT_Y')'}   // exclude those 2 non java project
here
})

configure(javaProjects()) {
  apply plugin: java
}

?

-- 
Regards / Pozdrawiam
Tomek Kaczanowski


2010/10/25 Roger Studner <[email protected]>:
> To add:
>
> something like:
>
> subprojects {
>  apply plugin: 'java'
> }
>
> project(':webapp:ui') {
>  DO NOT APPLY PLUGIN: 'java'
> }
>
> heh
>
> Roger
>
> On Oct 25, 2010, at 9:25 AM, Tomek Kaczanowski wrote:
>
>> Roger,
>>
>> please see this post:
>> http://gradle.1045684.n5.nabble.com/disable-container-folders-from-building-in-deep-multiproject-structures-td2805671.html#a2805764
>>
>> --
>> Regards / Pozdrawiam
>> Tomek Kaczanowski
>>
>>
>>
>> 2010/10/25 Roger Studner <[email protected]>:
>>> Probably a simple one.. just can't find an example.
>>>
>>> if I have:
>>>
>>> subprojects {
>>>   apply plugin: 'java'
>>> }
>>>
>>> because.. well.. I have like 7 subprojects.. but *2* of them are not java 
>>> (at all).
>>>
>>> Can I exclude them?
>>>
>>> (note, since there is no src/main/java in them, technically this doesn't 
>>> hurt)
>>>
>>> I'm just trying to increase the public repo of gradle lore :)
>>>
>>> Roger
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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