Thanks ! It works like a charm.
Le 04/11/2014 10:05, Peter Donald a écrit :
> Hi,
>
> On Mon, Nov 3, 2014 at 8:51 PM, Jean-Philippe Caruana
> wrote:
>
>> But it still doesn't work:
>> Expected ./target/querySimulator-1.0.0-SNAPSHOT.tgz to not contain
>> 'lib/scala-compiler-2.10.4.jar'
>> Buildr a
Hi,
On Mon, Nov 3, 2014 at 8:51 PM, Jean-Philippe Caruana
wrote:
> But it still doesn't work:
> Expected ./target/querySimulator-1.0.0-SNAPSHOT.tgz to not contain
> 'lib/scala-compiler-2.10.4.jar'
> Buildr aborted!
> RuntimeError : Checks failed for project querySimulator (see errors above).
>
Hi,
yes, you're correct, I am using a local file dependency:
$ cat build.yml
scala.version: 2.10.4
SOrry for wasting your time with too few information.
But it still doesn't work:
Expected ./target/querySimulator-1.0.0-SNAPSHOT.tgz to not contain
'lib/scala-compiler-2.10.4.jar'
Buildr aborted!
R
Hi,
It looks like you are using a local/file dependency which I did not account
for. So what you need to do is add the prefix like
"!a.respond_to?(:to_spec) || " in your select block. I have updated the
example [1] to demonstrate this.
HTH
[1]
https://github.com/realityforge/buildr-examples/comm
Hi Peter,
thank you for your answer.
I tried the solution you gave, but it doesn't compile :
$ buildr --version
Buildr 1.4.20
$ buildr package
(in /home/jp/src/t2s/performance-tests/querySimulator, development)
sh: 2: Syntax error: EOF in backquote substitution
Buildr aborted!
NoMethodError : un
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
O