Previously, spring-restdocs-core had a dependency on spring-webmvc however it only used classes from spring-web. This commit moves the spring-webmvc dependency from spring-restdocs-core to spring-restdocs-mockmvc where it's needed. It's now in the runtime scope (rather than compile) as it's not needed at compile time but is needed at runtime by the MockMvc support in spring-test. Closes gh-273
18 lines
628 B
Groovy
18 lines
628 B
Groovy
description = 'Spring REST Docs MockMvc'
|
|
|
|
dependencies {
|
|
compile 'org.springframework:spring-test'
|
|
compile project(':spring-restdocs-core')
|
|
optional 'junit:junit'
|
|
runtime 'org.springframework:spring-webmvc'
|
|
|
|
testCompile 'org.mockito:mockito-core'
|
|
testCompile 'org.hamcrest:hamcrest-library'
|
|
testCompile 'org.springframework.hateoas:spring-hateoas'
|
|
testCompile project(path: ':spring-restdocs-core', configuration: 'testArtifacts')
|
|
testRuntime 'commons-logging:commons-logging:1.2'
|
|
}
|
|
|
|
test {
|
|
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.restdocs.*"
|
|
} |