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. HTH, Tammo On Mon, Mar 3, 2014 at 2:16 PM, Jean-Philippe Caruana <[email protected]>wrote: > Hi, > > I'm using Buildr 1.4.15 and I have junit conflict in my idea files : I > see two version of junit : > - 4.8.2 (that "ships" with buildr) > - 4.11 (last version I use) > > My buildfile looks like this: > > JUNIT = 'junit:junit:jar:4.11' > define 'common' do > compile.with LOG4J > test.compile.with JUNIT > package :jar > end > > > My project iml file looks like this : > <orderEntry type="module-library" exported=""> > <library> > <CLASSES> > <root url="jar://$M2_REPO$/junit/junit/4.8.2/junit-4.8.2.jar!/" > /> > </CLASSES> > <JAVADOC /> > <SOURCES> > <root > url="jar://$M2_REPO$/junit/junit/4.8.2/junit-4.8.2-sources.jar!/" /> > > > </SOURCES> > </library> > </orderEntry> > > <orderEntry type="module-library" scope="TEST"> > <library> > <CLASSES> > <root url="jar://$M2_REPO$/junit/junit/4.11/junit-4.11.jar!/" > /> > > </CLASSES> > <JAVADOC /> > <SOURCES> > <root > url="jar://$M2_REPO$/junit/junit/4.11/junit-4.11-sources.jar!/" /> > </SOURCES> > </library> > </orderEntry> > > > > I have two questions : > - how can I tell buildr to ignore junit 4.8.2 version when I want > another one (hene 4.11) ? > - maybe the 4.11 shound be junit default version ? > > Thanks > -- > Jean-Philippe Caruana - [email protected] > http://www.barreverte.fr > -- Tammo van Lessen - http://www.taval.de
