Skip to content

Commit 303fc32

Browse files
committed
Upgrade to Hamcrest 2.1
Closes gh-23467
1 parent f8a93ee commit 303fc32

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ configure(allprojects) { project ->
143143
}
144144
testCompile("org.mockito:mockito-junit-jupiter:3.0.0")
145145
testCompile("io.mockk:mockk:1.9.3")
146-
testCompile("org.hamcrest:hamcrest-all:1.3")
146+
testCompile("org.hamcrest:hamcrest:2.1")
147147
testCompile("org.assertj:assertj-core:3.13.1")
148148
// Pull in the latest JUnit 5 Launcher API to ensure proper support in IDEs.
149149
testRuntime("org.junit.platform:junit-platform-launcher")

spring-test/spring-test.gradle

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ dependencies {
2727
optional("javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1")
2828
optional("javax.xml.bind:jaxb-api:2.3.1")
2929
optional("javax.websocket:javax.websocket-api:1.1")
30-
optional("junit:junit:4.13-beta-3")
30+
optional("junit:junit:4.13-beta-3") {
31+
exclude group: "org.hamcrest", module: "hamcrest-core"
32+
}
3133
optional("org.junit.jupiter:junit-jupiter-api")
3234
optional("org.testng:testng:6.14.3")
3335
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
3436
optional("org.codehaus.groovy:groovy:${groovyVersion}")
35-
optional("org.hamcrest:hamcrest-core:1.3")
37+
optional("org.hamcrest:hamcrest:2.1")
3638
optional("org.apache.taglibs:taglibs-standard-jstlel:1.2.5") {
3739
exclude group: "org.apache.taglibs", module: "taglibs-standard-spec"
3840
}
@@ -46,7 +48,9 @@ dependencies {
4648
exclude group: "commons-logging", module: "commons-logging"
4749
exclude group: "io.netty", module: "netty"
4850
}
49-
optional("org.xmlunit:xmlunit-matchers:2.6.2")
51+
optional("org.xmlunit:xmlunit-matchers:2.6.2") {
52+
exclude group: "org.hamcrest", module: "hamcrest-core"
53+
}
5054
optional("org.skyscreamer:jsonassert:1.5.0")
5155
optional("com.jayway.jsonpath:json-path:2.4.0")
5256
optional("org.jetbrains.kotlin:kotlin-reflect")
@@ -63,7 +67,9 @@ dependencies {
6367
testCompile("javax.mail:javax.mail-api:1.6.2")
6468
testCompile("org.hibernate:hibernate-core:5.4.3.Final")
6569
testCompile("org.hibernate:hibernate-validator:6.0.17.Final")
66-
testCompile("org.junit.platform:junit-platform-runner")
70+
testCompile("org.junit.platform:junit-platform-runner") {
71+
exclude group: "junit", module: "junit"
72+
}
6773
testCompile("org.junit.platform:junit-platform-testkit")
6874
testCompile("org.junit.jupiter:junit-jupiter-params")
6975
testCompile("com.fasterxml.jackson.core:jackson-databind:${jackson2Version}")
@@ -77,9 +83,13 @@ dependencies {
7783
exclude group: "commons-logging", module: "commons-logging"
7884
}
7985
testCompile("io.projectreactor.netty:reactor-netty")
80-
testCompile("de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1")
86+
testCompile("de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1") {
87+
exclude group: "junit", module: "junit"
88+
}
8189
testRuntime("org.junit.jupiter:junit-jupiter-engine")
82-
testRuntime("org.junit.vintage:junit-vintage-engine")
90+
testRuntime("org.junit.vintage:junit-vintage-engine") {
91+
exclude group: "junit", module: "junit"
92+
}
8393
testRuntime("org.glassfish:javax.el:3.0.1-b08")
8494
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
8595
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")

0 commit comments

Comments
 (0)