buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <boisv...@intalio.com>
Subject Re: Specifying exludes for transitive dependencies
Date Sun, 15 Feb 2009 01:34:28 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message