From de38c033e4f2196a481f88329703e32730bf1ab7 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 2 Nov 2012 12:18:16 -0400 Subject: [PATCH] Make hamcrest dependency optional in spring-test Users of Spring MVC Test will need to list a hamcrest dependency -- either hamcrest-library or hamcrest-all. Issue: SPR-9940 --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 97ef7ae57c..6d97c7be17 100644 --- a/build.gradle +++ b/build.gradle @@ -557,7 +557,8 @@ project('spring-test-mvc') { compile project(":spring-webmvc") compile project(":spring-test").sourceSets.main.output compile("org.apache.tomcat:tomcat-servlet-api:7.0.8", provided) - compile "org.hamcrest:hamcrest-library:1.3" + compile("org.hamcrest:hamcrest-core:1.3", optional) + compile("org.hamcrest:hamcrest-library:1.3", optional) compile("com.jayway.jsonpath:json-path:0.8.1", optional) compile("xmlunit:xmlunit:1.2", optional) testCompile("org.slf4j:jcl-over-slf4j:1.6.1")