From 9f67eaab708321df32aeac49dac66175a94a06cf Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 7 Apr 2017 17:03:32 +0100 Subject: [PATCH] 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 --- build.gradle | 2 +- spring-restdocs-restassured/build.gradle | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index b675c6c2..76dbba53 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } } } diff --git a/spring-restdocs-restassured/build.gradle b/spring-restdocs-restassured/build.gradle index 0f52014c..88e043c0 100644 --- a/spring-restdocs-restassured/build.gradle +++ b/spring-restdocs-restassured/build.gradle @@ -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'