buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Philippe Caruana ...@target2sell.com>
Subject scala build
Date Thu, 30 Oct 2014 14:16:42 GMT
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


Mime
View raw message