From caab99a7482a071b235cb476f7eefe275bc24517 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 20 Jul 2016 15:17:13 +0200 Subject: [PATCH] Updated main page --- index.html | 69 +++++++++++++++++++++++++++--------------------------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/index.html b/index.html index 65faa1340c..1b5acf795b 100644 --- a/index.html +++ b/index.html @@ -116,22 +116,22 @@ Gradle Setup ```groovy buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'org.springframework.cloud:spring-cloud-contract-verifier-gradle-plugin:${verifier_version}' - classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootPlugin - } + repositories { + mavenCentral() + } + dependencies { + classpath 'org.springframework.cloud:spring-cloud-contract-verifier-gradle-plugin:${verifier_version}' + classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootPlugin} + } } apply plugin: 'spring-boot' apply plugin: 'contract-verifier' dependencyManagement { - imports { - mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:${verifierVersion}" - } + imports { + mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:${verifierVersion}" + } } contractVerifier { @@ -140,7 +140,7 @@ contractVerifier { } dependencies { - testCompile 'org.springframework.cloud:spring-cloud-starter-contract-verifier' + testCompile 'org.springframework.cloud:spring-cloud-starter-contract-verifier' } ``` @@ -319,44 +319,43 @@ Maven - - - org.springframework.cloud - spring-cloud-contract-wiremock - test - - - org.springframework.cloud - spring-cloud-starter-contract-stub-runner - test - - - + + + org.springframework.cloud + spring-cloud-contract-wiremock + test + + + org.springframework.cloud + spring-cloud-starter-contract-stub-runner + test + + ``` Gradle ```groovy buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootPluginVersion}" - } + repositories { + mavenCentral() + } + dependencies { + classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootPluginVersion}" + } } apply plugin: 'spring-boot' dependencyManagement { - imports { - mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:${verifierVersion}" - } + imports { + mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:${verifierVersion}" + } } dependencies { - testCompile "org.springframework.cloud:spring-cloud-contract-wiremock" - testCompile "org.springframework.cloud:spring-cloud-starter-contract-stub-runner" + testCompile "org.springframework.cloud:spring-cloud-contract-wiremock" + testCompile "org.springframework.cloud:spring-cloud-starter-contract-stub-runner" }``` The last step is to provide the property for the Stub Runner to automatically download the required stubs. If you're using Spring Boot it's enough to add the following section to your project test properties: