buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject Re: Specifying exludes for transitive dependencies
Date Sun, 15 Feb 2009 02:09:07 GMT
Cool!

http://cwiki.apache.org/confluence/display/BUILDR/How+to+exclude+dependencies+from+transitive()

Cheers,
Martin



On Sat, 2009-02-14 at 17:34 -0800, Alex Boisvert wrote:
> On Sat, Feb 14, 2009 at 5:13 PM, Martin Grotzke <
> martin.grotzke@javakaffee.de> wrote:
> 
> > Hi,
> >
> > a common issue when using several frameworks is the compatibility
> > between required libs (e.g. asm, cglib, javassist).
> >
> > Is it possible in buildr to somehow specify that for an artifact
> > (specified with transitive()) certain transitive dependencies shall not
> > be pulled in (as an equivalent to mavens exclusions element)?
> >
> > E.g. s.th. like
> > transitive( 'org.hibernate:hibernate:jar:3.2.4.ga' ).exclude(
> > 'cglib:cglib' )?
> 
> 
> transitive(...) returns an array of artifacts, so you can do:
> 
> transitive( 'org.hibernate:hibernate:jar:3.2.4.ga' ).reject { |a| a.group ==
> 'cglib' && a.id == 'cglib' }
> 
> alex

Mime
View raw message