I'm trying to do something like this:

configurations {
  all*.exclude group: "org.springframework" 
}

dependencies {
        groovy 'org.codehaus.groovy:groovy:1.6.5' 

    compile 'org.springframework:spring:2.5.6'
        compile 'org.springframework:spring-tx:2.5.6'
        compile 'org.springframework:spring-aop:2.5.6'          
        compile 'org.springframework.security:spring-security-core:2.0.4'
...
}

Now, I can't do all*.exclude group: "org.springframework", version: "2.0.8"  
(the source doesn't seem to allow for version).

The issue (long standing as well in the Maven world) is that Spring Secrutiy 
2.0.4 has a dependency (in the POMs) on Spring 2.0.8.

In Maven, this is easy to resolve using <exclude> etc.

That doesn't seem to be possible with gradle (now, this is just a baiting 
statement heh).

Right now I sort of do a manual/hack dual pass... get all the stuff, put files 
in lib.. run another task, delete what I dont want.. run another one, to use a 
flatDir repo.

Eee gads!

Any ideas?

Thanks,
Roger


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

    http://xircles.codehaus.org/manage_email


Reply via email to