diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml b/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml index 9d4e191bdf1..f0b7527161b 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml @@ -497,6 +497,12 @@ com.squareup.okhttp3 mockwebserver test + + + org.hamcrest + hamcrest-core + + com.jayway.jsonpath diff --git a/spring-boot-project/spring-boot-autoconfigure/pom.xml b/spring-boot-project/spring-boot-autoconfigure/pom.xml index 8b671d16868..d90d189ab19 100755 --- a/spring-boot-project/spring-boot-autoconfigure/pom.xml +++ b/spring-boot-project/spring-boot-autoconfigure/pom.xml @@ -855,6 +855,12 @@ com.squareup.okhttp3 mockwebserver test + + + org.hamcrest + hamcrest-core + + com.sun.xml.messaging.saaj diff --git a/spring-boot-project/spring-boot-cli/pom.xml b/spring-boot-project/spring-boot-cli/pom.xml index c9da5aae856..c8f1db8dda6 100644 --- a/spring-boot-project/spring-boot-cli/pom.xml +++ b/spring-boot-project/spring-boot-cli/pom.xml @@ -153,6 +153,12 @@ junit junit test + + + org.hamcrest + hamcrest-core + + diff --git a/spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java b/spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java index dab2e1a2105..1deed593797 100644 --- a/spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java +++ b/spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolverTests.java @@ -121,9 +121,9 @@ public class GroovyGrabDependencyResolverTests { public void resolveMultipleArtifacts() throws Exception { List resolved = this.resolver.resolve(Arrays.asList("junit:junit:4.11", "commons-logging:commons-logging:1.1.3")); - assertThat(resolved).hasSize(3); + assertThat(resolved).hasSize(4); assertThat(getNames(resolved)).containsOnly("junit-4.11.jar", - "commons-logging-1.1.3.jar", "hamcrest-core-1.3.jar"); + "commons-logging-1.1.3.jar", "hamcrest-core-2.1.jar", "hamcrest-2.1.jar"); } public Set getNames(Collection files) { diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 6d61093d329..4141173f8d2 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -66,7 +66,7 @@ 2.5.7 2.8.5 1.4.199 - 1.3 + 2.1 3.12 1.3.2 5.4.2.Final @@ -2245,6 +2245,11 @@ import pom + + org.hamcrest + hamcrest + ${hamcrest.version} + org.hamcrest hamcrest-core diff --git a/spring-boot-project/spring-boot-docs/pom.xml b/spring-boot-project/spring-boot-docs/pom.xml index 849c3ae164f..770844763d6 100644 --- a/spring-boot-project/spring-boot-docs/pom.xml +++ b/spring-boot-project/spring-boot-docs/pom.xml @@ -88,6 +88,14 @@ javax.activation activation + + org.hamcrest + hamcrest-core + + + org.hamcrest + hamcrest-library + @@ -401,6 +409,12 @@ junit junit true + + + org.hamcrest + hamcrest-core + + org.junit.jupiter @@ -660,7 +674,7 @@ org.hamcrest - hamcrest-library + hamcrest true diff --git a/spring-boot-project/spring-boot-parent/pom.xml b/spring-boot-project/spring-boot-parent/pom.xml index 20349c6e01c..2c031ffe596 100644 --- a/spring-boot-project/spring-boot-parent/pom.xml +++ b/spring-boot-project/spring-boot-parent/pom.xml @@ -246,6 +246,12 @@ org.junit.vintage junit-vintage-engine test + + + org.hamcrest + hamcrest-core + + org.mockito @@ -264,7 +270,7 @@ org.hamcrest - hamcrest-library + hamcrest test @@ -583,6 +589,7 @@ com.zaxxer:HikariCP-* + org.hamcrest:hamcrest-* javax.*:*:* diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml index b0490ee0ed6..87ca31d504d 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml @@ -42,10 +42,22 @@ org.junit.vintage junit-vintage-engine + + + org.hamcrest + hamcrest-core + + junit junit + + + org.hamcrest + hamcrest-core + + org.mockito @@ -57,11 +69,7 @@ org.hamcrest - hamcrest-core - - - org.hamcrest - hamcrest-library + hamcrest org.mockito diff --git a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml index fba8c5b840a..2a2689799d2 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml +++ b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml @@ -53,6 +53,14 @@ javax.activation activation + + org.hamcrest + hamcrest-core + + + org.hamcrest + hamcrest-library + @@ -367,6 +375,10 @@ javax.xml.bind jaxb-api + + org.hamcrest + hamcrest-core + diff --git a/spring-boot-project/spring-boot-test/pom.xml b/spring-boot-project/spring-boot-test/pom.xml index ddc3769d21d..a9bc9aff246 100644 --- a/spring-boot-project/spring-boot-test/pom.xml +++ b/spring-boot-project/spring-boot-test/pom.xml @@ -54,6 +54,12 @@ junit junit true + + + org.hamcrest + hamcrest-core + + org.apache.httpcomponents @@ -67,12 +73,7 @@ org.hamcrest - hamcrest-core - true - - - org.hamcrest - hamcrest-library + hamcrest true diff --git a/spring-boot-project/spring-boot-tools/spring-boot-test-support/pom.xml b/spring-boot-project/spring-boot-tools/spring-boot-test-support/pom.xml index 1694277962b..2445f43df46 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-test-support/pom.xml +++ b/spring-boot-project/spring-boot-tools/spring-boot-test-support/pom.xml @@ -49,11 +49,7 @@ org.hamcrest - hamcrest-core - - - org.hamcrest - hamcrest-library + hamcrest org.assertj @@ -118,6 +114,12 @@ junit junit provided + + + org.hamcrest + hamcrest-core + + diff --git a/spring-boot-project/spring-boot/pom.xml b/spring-boot-project/spring-boot/pom.xml index 978a6a0d6cb..9a0435b5773 100644 --- a/spring-boot-project/spring-boot/pom.xml +++ b/spring-boot-project/spring-boot/pom.xml @@ -115,6 +115,12 @@ junit junit true + + + org.hamcrest + hamcrest-core + + org.apache.commons @@ -210,7 +216,7 @@ org.hamcrest - hamcrest-library + hamcrest true