Skip to content

Commit de38c03

Browse files
committed
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
1 parent c94bc2e commit de38c03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ project('spring-test-mvc') {
557557
compile project(":spring-webmvc")
558558
compile project(":spring-test").sourceSets.main.output
559559
compile("org.apache.tomcat:tomcat-servlet-api:7.0.8", provided)
560-
compile "org.hamcrest:hamcrest-library:1.3"
560+
compile("org.hamcrest:hamcrest-core:1.3", optional)
561+
compile("org.hamcrest:hamcrest-library:1.3", optional)
561562
compile("com.jayway.jsonpath:json-path:0.8.1", optional)
562563
compile("xmlunit:xmlunit:1.2", optional)
563564
testCompile("org.slf4j:jcl-over-slf4j:1.6.1")

0 commit comments

Comments
 (0)