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 <j...@target2sell.com> 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