Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8185417997 for ; Thu, 30 Oct 2014 22:26:12 +0000 (UTC) Received: (qmail 42898 invoked by uid 500); 30 Oct 2014 22:26:12 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 42856 invoked by uid 500); 30 Oct 2014 22:26:12 -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 42844 invoked by uid 99); 30 Oct 2014 22:26:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2014 22:26:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.j.donald@gmail.com designates 209.85.213.41 as permitted sender) Received: from [209.85.213.41] (HELO mail-yh0-f41.google.com) (209.85.213.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2014 22:26:07 +0000 Received: by mail-yh0-f41.google.com with SMTP id b6so2127156yha.0 for ; Thu, 30 Oct 2014 15:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=/ggIpE9UqT8W+q+Pd5eJ0NovMVCD/GjzmygYMGWHDw8=; b=FA3bIMmsCh4/ZawaJEtbjN/w62i96fl9UZWLZP4hvGASDGoqY4dOT9heV6A2hKUNWb dtphM5+55RvR+6az6w8CwLdKAXQboYRJXJs8n9mbwnbePDiDQgdRFFS/9UnAPB+/xReh YpX6pipc4ldgUpbeyQYdKWxQmOxp9TOgakkhy+vl9AsGYRYlxr5b42AvAMovR2rhkEXp NY99iSVN/6HGpMYbkmwU4tUIa8LKbnaQqj7JttJFyXbqo3PZWhcYWr8iQ35orJMoEmrf /mkFEQTejAE7rObXPICxnYt7TCjEE5VwEXYZZoSvqvzewYv4Nu0FL6Aw8pMyMnl7Reqj 3JPw== MIME-Version: 1.0 X-Received: by 10.170.139.86 with SMTP id g83mr11318743ykc.96.1414707856878; Thu, 30 Oct 2014 15:24:16 -0700 (PDT) Sender: peter.j.donald@gmail.com Received: by 10.170.123.138 with HTTP; Thu, 30 Oct 2014 15:24:16 -0700 (PDT) In-Reply-To: <5452484A.9080800@target2sell.com> References: <5452484A.9080800@target2sell.com> Date: Fri, 31 Oct 2014 09:24:16 +1100 X-Google-Sender-Auth: rAjuqN_nCG1OZDedE7lEdXHm9jc Message-ID: Subject: Re: scala build From: Peter Donald To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=001a113994fe4533b70506ab5793 X-Virus-Checked: Checked by ClamAV on apache.org --001a113994fe4533b70506ab5793 Content-Type: text/plain; charset=UTF-8 Hi, The easiest way to do this is probably replace compile.dependencies with compile.dependencies.select {|a| a.to_spec != 'org.scala-lang:scala- compiler:jar:2.10.4'} I put together an example of this at https://github.com/realityforge/buildr-examples/tree/master/include_select_deps HTH On Fri, Oct 31, 2014 at 1:16 AM, Jean-Philippe Caruana wrote: > Hi, > > I want to package a scala project as a tgz. In the generated tgz, the > scala-compiler-2.10.4.jar is included : it is heavy (14M) and unnecessary. > > I try to remove it, but it doesn't work : > > generated_lib = package(:jar).exclude '*.properties*' > livrable = package :tgz > livrable.path('lib').include generated_lib, compile.dependencies > livrable.path('lib').exclude 'scala-compiler-2.10.4.jar' > > > I added a (always failing) check: > > check livrable, "doesn't need the very heavy (14M) scala-compiler.jar " > do > it.should_not contain('lib/scala-compiler-2.10.4.jar') > end > > > I also tried > generated_lib = package(:jar).exclude '*.properties*' > livrable = package :tgz > livrable.path('lib').include generated_lib, (compile.dependencies - > 'org.scala-lang:scala-compiler:jar:2.10.4') > > How can I do ? > > -- > Jean-Philippe Caruana > http://www.barreverte.fr > > -- Cheers, Peter Donald --001a113994fe4533b70506ab5793--