Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 86243 invoked from network); 15 Feb 2009 01:34:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 01:34:56 -0000 Received: (qmail 11009 invoked by uid 500); 15 Feb 2009 01:34:56 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 10987 invoked by uid 500); 15 Feb 2009 01:34:55 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 10976 invoked by uid 99); 15 Feb 2009 01:34:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 17:34:55 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of boisvert@intalio.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 01:34:50 +0000 Received: by wa-out-1112.google.com with SMTP id v33so883623wah.21 for ; Sat, 14 Feb 2009 17:34:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.57.1 with SMTP id f1mr1484479waa.145.1234661668280; Sat, 14 Feb 2009 17:34:28 -0800 (PST) In-Reply-To: <1234660405.4116.43.camel@localhost.localdomain.tld> References: <1234660405.4116.43.camel@localhost.localdomain.tld> Date: Sat, 14 Feb 2009 17:34:28 -0800 Message-ID: <5582dd3b0902141734i480395f4oadfccc67e297678a@mail.gmail.com> Subject: Re: Specifying exludes for transitive dependencies From: Alex Boisvert To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=0016364581c427d9090462eb1202 X-Virus-Checked: Checked by ClamAV on apache.org --0016364581c427d9090462eb1202 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --0016364581c427d9090462eb1202--