buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Philippe Caruana ...@target2sell.com>
Subject Re: junit conflict in idea
Date Mon, 28 Jul 2014 14:54:47 GMT
Hi,

I still have junit version issues. Either setting
Buildr.settings.build['junit'] to '4.11' or creating a build.yaml file
doesn't work :
$ find -name "*.iml" -exec grep -H "4\.8\.2" {} \;
./a/a.iml:          <root
url="jar://$M2_REPO$/junit/junit/4.8.2/junit-4.8.2.jar!/" />
./b/b.iml:          <root
url="jar://$M2_REPO$/junit/junit/4.8.2/junit-4.8.2-sources.jar!/" />

I have the issue on 2 of my 11 modules...

What's wrong with my buildfile ? I don't do anything special with these
2 projects (a and b) : the difference is they are both webapps... Any idea ?


$ buildr --version
Buildr 1.4.19

Wouldn't it be great just to default junit to the 4.11 version in the
next buildr version ?


Thanks !

Le 03/03/2014 14:49, Jean-Philippe Caruana a écrit :
> Le 03/03/2014 14:36, Tammo van Lessen a écrit :
>> Hi Jean Philippe,
>>
>> If I'm not mistaken, adding the following line to the beginning of your
>> buildfile should help:
>>
>> Buildr.settings.build['junit'] = '4.11'
>>
>> In order to avoid conflicts, you can reference JUnit.dependencies instead
>> of your own JUNIT constant.
> I didn't know that ! Thanks !
> But I still have the issue, but my buildfile looks like this now :
>
>   Buildr.settings.build['junit'] = '4.11'
>   JUNIT = JUnit.dependencies, 'org.hamcrest:hamcrest-core:jar:1.3',
> 'com.github.stefanbirkner:system-rules:jar:1.4.0',
> 'org.junit.contrib:junit-theories:jar:4.11', QUICKCHECK
>
> Please note that in eclipse there is no such issue, so I suspect the
> idea plugin here.
>

-- 
Jean-Philippe Caruana
 http://www.barreverte.fr


Mime
View raw message