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:
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user