List REST Assured dependencies as optional in pom

Previously, the use of compileOnly meant that the REST Assured
dependencies were omitted from pom for spring-restdocs-restassured.
This commit correct thr problem by using the propdeps' plugin's
optional configuration instead.

Closes gh-372
This commit is contained in:
Andy Wilkinson
2017-04-07 17:03:32 +01:00
parent 704257e93b
commit 9f67eaab70
2 changed files with 3 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ buildscript {
}
configurations.classpath.resolutionStrategy.eachDependency {
if (it.requested.name == 'dependency-management-plugin') {
it.useVersion '1.0.0.RELEASE'
it.useVersion '1.0.1.RELEASE'
}
}
}

View File

@@ -2,11 +2,9 @@ description = 'Spring REST Docs REST Assured'
dependencies {
compile project(':spring-restdocs-core')
compileOnly 'com.jayway.restassured:rest-assured'
compileOnly 'io.rest-assured:rest-assured'
optional 'com.jayway.restassured:rest-assured'
optional 'io.rest-assured:rest-assured'
testCompile 'com.jayway.restassured:rest-assured'
testCompile 'io.rest-assured:rest-assured'
testCompile 'org.apache.tomcat.embed:tomcat-embed-core:8.5.13'
testCompile 'org.mockito:mockito-core'
testCompile 'org.hamcrest:hamcrest-library'