Hi, turns out the colon was causing the problem after all.  I managed to get
the exludes working OK as follows:

configurations {             
       runtime.exclude module: 'ProgressOE10openedge'
       runtime.exclude module: 'c3p0'
   }

When I declare my dependencies I use the String notation, but it seems you
need to use the map notation when declaring an exclude.

Does anyone know an easy way to list mutliple modules to exclude?
   
Thanks.


richardm wrote:
> 
> I have a multi-project build and ":ProgressOE10openedge" is set as a
> compile dependency on another project that this one depends on.
> 
> I am using flat directories and don't have Ivy or Maven (although I'm in
> the process of moving to Ivy).  
> 
> The compile dependency works OK in this format and resolves to a single
> jar ProgressOE10openedge.jar.  However this isn't working on my exclude
> (see previous post).
> 
> I put the ":" at the start as I thought the group and version parts were
> optional and that the format had to be "[group]:name:[version]".  Maybe
> the exclude doesn't work in this format if using a flat directory rather
> than maven/ivy?
> 
> I'm a bit confused by the documentation for excluding transitive
> dependencies as you need to specify a 'module'.  Should this map to a
> module descriptor file in an external repository rather than a compile
> dependency on a JAR in a lib directory.
> 
> 
> Peter Niederwieser wrote:
>> 
>> ":ProgressOE10openedge" doesn't look like a valid module name to me
>> (especially with the colon). What is it that you are trying to exclude
>> here?
>> 
>> --
>> Peter Niederwieser
>> Principal Engineer, Gradleware 
>> http://gradleware.com
>> Creator, Spock Framework 
>> http://spockframework.org
>> Twitter: @pniederw
>> 
>> 
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Need-to-exclude-transitive-dependencies-for-manifest-classpath-tp4773575p4779162.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to