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 <
> [email protected]> 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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to