When I run "gradlew idea" in the GPars source, I end up with a whole collection of JUnit jars in the class path that the IDEA project ends up having:
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit/c12498cf18507aa6433a94eb7d3e77d5/jars/junit-4.8.1.jar!/"/>
</CLASSES>
<JAVADOC/>
<SOURCES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit/c12498cf18507aa6433a94eb7d3e77d5/sources/junit-4.8.1-sources.jar!/"/>
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" scope="TEST">
<library>
<CLASSES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit/c12498cf18507aa6433a94eb7d3e77d5/jars/junit-4.10.jar!/"/>
</CLASSES>
<JAVADOC/>
<SOURCES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit/c12498cf18507aa6433a94eb7d3e77d5/sources/junit-4.10-sources.jar!/"/>
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" scope="TEST">
<library>
<CLASSES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit-dep/c12498cf18507aa6433a94eb7d3e77d5/jars/junit-dep-4.9.jar!/"/>
</CLASSES>
<JAVADOC/>
<SOURCES>
<root
url="jar:///home/users/russel/.gradle/caches/artifacts-4/junit/junit-dep/c12498cf18507aa6433a94eb7d3e77d5/sources/junit-dep-4.9-sources.jar!/"/>
</SOURCES>
</library>
</orderEntry>
The build.gradle has only:
testCompile group: 'junit', name: 'junit', version:
project.hasProperty('gpars_junitVersion') ? gpars_junitVersion : '4.10'
So the question is where does the 4.8.1 dependency come from and why is
it a compile dependency, and why does it override the explicit test
dependency of 4.10?
Thanks.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
