diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml
index f57c498a738..d1edd9e4eca 100644
--- a/spring-boot-dependencies/pom.xml
+++ b/spring-boot-dependencies/pom.xml
@@ -624,6 +624,11 @@
flyway-core
${flyway.version}
+
+ org.hamcrest
+ hamcrest-core
+ ${hamcrest.version}
+
org.hamcrest
hamcrest-library
diff --git a/spring-boot-starters/spring-boot-starter-test/pom.xml b/spring-boot-starters/spring-boot-starter-test/pom.xml
index 4367acaf211..3ce15418983 100644
--- a/spring-boot-starters/spring-boot-starter-test/pom.xml
+++ b/spring-boot-starters/spring-boot-starter-test/pom.xml
@@ -26,6 +26,10 @@
org.mockito
mockito-core
+
+ org.hamcrest
+ hamcrest-core
+
org.hamcrest
hamcrest-library