From 8eca40a3886de6dab233e032965d06de713e7809 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 9 May 2014 09:01:59 +0100 Subject: [PATCH] Add explicit hamcrest-core dependency Add an explicit dependency to `hamcrest-core` in the `spring-boot-starter-test` POM. This prevents version 1.1 from accidentally being pulled in via junit. Fixes gh-810 --- spring-boot-dependencies/pom.xml | 5 +++++ spring-boot-starters/spring-boot-starter-test/pom.xml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index fb806544d52..12aa1b56751 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -303,6 +303,11 @@ jetty-annotations ${jetty.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 cf1efee0a98..050ecc13a52 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