You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Jean-Philippe Caruana <jp...@target2sell.com> on 2014/07/28 16:54:47 UTC
Re: junit conflict in idea
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
Re: junit conflict in idea
Posted by Peter Donald <pe...@realityforge.org>.
On Tue, Jul 29, 2014 at 12:54 AM, Jean-Philippe Caruana
<jp...@target2sell.com> wrote:
> 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 ?
If you can show me a small example that exhibits this behaviour then I
can probably figure it out. But I am not sure there is enough info to
immediately pick it.
> Wouldn't it be great just to default junit to the 4.11 version in the
> next buildr version ?
Sounds like a plan.
--
Cheers,
Peter Donald