Add support for WireMock matchers on restdocs stub builder
This commit is contained in:
@@ -5,9 +5,6 @@ buildscript {
|
||||
maven { url "http://repo.spring.io/libs-snapshot-local" }
|
||||
maven { url "http://repo.spring.io/libs-release-local" }
|
||||
maven { url "http://repo.spring.io/libs-staging-local" }
|
||||
maven { url 'http://repo.spring.io/plugins-snapshot' }
|
||||
maven { url "http://repo.spring.io/plugins-release-local" }
|
||||
maven { url "http://repo.spring.io/plugins-staging-local/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.4.0.BUILD-SNAPSHOT"
|
||||
@@ -41,7 +38,8 @@ dependencies {
|
||||
compile("org.springframework.boot:spring-boot-starter-actuator")
|
||||
|
||||
testCompile 'org.springframework.cloud:spring-cloud-contract-wiremock'
|
||||
testCompile "org.springframework.cloud:spring-cloud-starter-contract-stub-runner"
|
||||
testCompile "org.springframework.boot:spring-boot-starter-test"
|
||||
testCompile "com.example:http-server-restdocs:0.0.1-SNAPSHOT:stubs"
|
||||
}
|
||||
|
||||
test {
|
||||
|
||||
@@ -141,22 +141,6 @@
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>spring-plugin-snapshots</id>
|
||||
<name>Spring Snapshots</name>
|
||||
<url>http://repo.spring.io/plugins-snapshot-local</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>spring-plugin-milestones</id>
|
||||
<name>Spring Milestones</name>
|
||||
<url>http://repo.spring.io/plugins-milestone-local</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
@@ -25,6 +25,14 @@ echo -e "\n\nBuilding client (uses Spring Cloud Contract Stub Runner)"
|
||||
cd dsl/http-client
|
||||
./gradlew clean build -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
echo -e "Building server (uses Spring Cloud Contract Verifier Gradle Plugin)"
|
||||
cd restdocs/http-server
|
||||
./gradlew clean build publishToMavenLocal -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
echo -e "\n\nBuilding client (uses Spring Cloud Contract Stub Runner)"
|
||||
cd restdocs/http-client
|
||||
./gradlew clean build -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
|
||||
echo -e "\n\nClearing saved stubs"
|
||||
rm -rf $LOCAL_MAVEN_REPO/repository/org/springframework/cloud/contract/testprojects/
|
||||
|
||||
Reference in New Issue
Block a user