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")