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