@@ -41,10 +41,10 @@ dependencies {
|
||||
}
|
||||
----
|
||||
|
||||
====== Gradle and Rest Assured 3.0
|
||||
====== Gradle and Rest Assured 2.0
|
||||
|
||||
By default Rest Assured 2.x is added to the classpath. However in order to give the users the
|
||||
opportunity to use Rest Assured 3.x it's enough to add it to the plugins classpath.
|
||||
By default Rest Assured 3.x is added to the classpath. However in order to give the users the
|
||||
opportunity to use Rest Assured 2.x it's enough to add it to the plugins classpath.
|
||||
|
||||
[source,groovy,indent=0]
|
||||
----
|
||||
@@ -55,20 +55,20 @@ buildscript {
|
||||
dependencies {
|
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springboot_version}"
|
||||
classpath "org.springframework.cloud:spring-cloud-contract-gradle-plugin:${verifier_version}"
|
||||
classpath "io.rest-assured:rest-assured:3.0.2"
|
||||
classpath "io.rest-assured:spring-mock-mvc:3.0.2"
|
||||
classpath "com.jayway.restassured:rest-assured:2.5.0"
|
||||
classpath "com.jayway.restassured:spring-mock-mvc:2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
depenendencies {
|
||||
// all dependencies
|
||||
// you can exclude rest-assured from spring-cloud-contract-verifier
|
||||
testCompile "io.rest-assured:rest-assured:3.0.2"
|
||||
testCompile "io.rest-assured:spring-mock-mvc:3.0.2"
|
||||
testCompile "com.jayway.restassured:rest-assured:2.5.0"
|
||||
testCompile "com.jayway.restassured:spring-mock-mvc:2.5.0"
|
||||
}
|
||||
----
|
||||
|
||||
That way the plugin will automatically see that Rest Assured 3.x is present on the classpath
|
||||
That way the plugin will automatically see that Rest Assured 2.x is present on the classpath
|
||||
and will modify the imports accordingly.
|
||||
|
||||
====== Snapshot versions for Gradle
|
||||
@@ -307,10 +307,10 @@ include::{standalone_samples_path}/http-server/pom.xml[tags=contract_maven_plugi
|
||||
|
||||
You can read more in the https://cloud.spring.io/spring-cloud-contract/spring-cloud-contract-maven-plugin/[Spring Cloud Contract Maven Plugin Docs]
|
||||
|
||||
====== Maven and Rest Assured 3.0
|
||||
====== Maven and Rest Assured 2.0
|
||||
|
||||
By default Rest Assured 2.x is added to the classpath. However in order to give the users the
|
||||
opportunity to use Rest Assured 3.x it's enough to add it to the plugins classpath.
|
||||
By default Rest Assured 3.x is added to the classpath. However in order to give the users the
|
||||
opportunity to use Rest Assured 2.x it's enough to add it to the plugins classpath.
|
||||
|
||||
[source,groovy,indent=0]
|
||||
----
|
||||
@@ -329,15 +329,15 @@ opportunity to use Rest Assured 3.x it's enough to add it to the plugins classpa
|
||||
<version>${spring-cloud-contract.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.rest-assured</groupId>
|
||||
<groupId>com.jayway.restassured</groupId>
|
||||
<artifactId>rest-assured</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<version>2.5.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.rest-assured</groupId>
|
||||
<groupId>com.jayway.restassured</groupId>
|
||||
<artifactId>spring-mock-mvc</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<version>2.5.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@@ -347,15 +347,15 @@ opportunity to use Rest Assured 3.x it's enough to add it to the plugins classpa
|
||||
<!-- all dependencies -->
|
||||
<!-- you can exclude rest-assured from spring-cloud-contract-verifier -->
|
||||
<dependency>
|
||||
<groupId>io.rest-assured</groupId>
|
||||
<groupId>com.jayway.restassured</groupId>
|
||||
<artifactId>rest-assured</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<version>2.5.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.rest-assured</groupId>
|
||||
<groupId>com.jayway.restassured</groupId>
|
||||
<artifactId>spring-mock-mvc</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<version>2.5.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
Reference in New Issue
Block a user