提交 369d77bd 编写于 作者: S Sam Brannen

spring-test module now depends on junit:junit-dep

The junit:junit Maven artifact includes a bundled version of hamcrest
core. For projects that depend on later versions of hamcrest this causes
significant issues in terms of dependency management.

The spring-test module now depends on junit:junit-dep, thus allowing
developers to better manage their test dependencies on a more fine
grained level.

Also tidied up dependency issues regarding hamcrest-core and
hamcrest-all across the build.

Issue: SPR-6966
上级 04a68272
......@@ -18,6 +18,7 @@ configure(allprojects) {
targetCompatibility=1.5
ext.aspectjVersion = '1.6.12'
ext.junitVersion = '4.10'
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:none']
......@@ -31,9 +32,11 @@ configure(allprojects) {
}
dependencies {
testCompile "junit:junit:4.10"
testCompile "org.easymock:easymock:2.5.1"
testCompile ("junit:junit-dep:${junitVersion}") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile "org.hamcrest:hamcrest-all:1.1"
testCompile "org.easymock:easymock:2.5.1"
}
// servlet-api (2.5) and tomcat-servlet-api (3.0) classpath entries should not be
......@@ -475,8 +478,17 @@ project('spring-test') {
compile(project(":spring-web"), optional)
compile(project(":spring-webmvc"), optional)
compile(project(":spring-webmvc-portlet"), optional)
compile("junit:junit:4.10", optional)
compile("org.testng:testng:6.5.2", optional)
compile("junit:junit-dep:${junitVersion}") { dep ->
optional dep
// We already have hamcrest-all as a global testCompile dependency.
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("org.testng:testng:6.5.2") { dep ->
optional dep
exclude group: 'junit', module: 'junit'
// We already have hamcrest-all as a global testCompile dependency.
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
compile("javax.servlet:servlet-api:2.5", optional)
compile("javax.servlet.jsp:jsp-api:2.1", optional)
compile("javax.portlet:portlet-api:2.0", optional)
......
......@@ -3,6 +3,12 @@ SPRING FRAMEWORK CHANGELOG
http://www.springsource.org
Changes in version 3.2 M2
-------------------------
* spring-test module now depends on junit:junit-dep
Changes in version 3.2 M1 (2012-05-28)
--------------------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册