+diff --git a/reference/html/documentation-overview.html b/reference/html/documentation-overview.html index e0e15368dc..f075319e22 100644 --- a/reference/html/documentation-overview.html +++ b/reference/html/documentation-overview.html @@ -123,13 +123,13 @@ as a map for the rest of the document.
diff --git a/reference/html/gradle-project.html b/reference/html/gradle-project.html index a4b691cf8f..dd029f54ec 100644 --- a/reference/html/gradle-project.html +++ b/reference/html/gradle-project.html @@ -412,7 +412,7 @@ pseudocode): testMode = 'MockMvc' generatedTestSourcesDir = project.file("${project.buildDir}/generated-test-sources/contracts") generatedTestResourcesDir = project.file("${project.buildDir}/generated-test-resources/contracts") - contractsDslDir = "${project.rootDir}/src/test/resources/contracts" + contractsDslDir = project.file("${project.rootDir}/src/test/resources/contracts") basePackageForTests = 'org.springframework.cloud.verifier.tests' stubsOutputDir = project.file("${project.buildDir}/stubs") diff --git a/reference/html/images/flow-overview-consumer-cdc-external-consumer.png b/reference/html/images/flow-overview-consumer-cdc-external-consumer.png index 22af094a83..995602d469 100644 Binary files a/reference/html/images/flow-overview-consumer-cdc-external-consumer.png and b/reference/html/images/flow-overview-consumer-cdc-external-consumer.png differ diff --git a/reference/html/images/flow-overview-consumer-cdc-external-producer.png b/reference/html/images/flow-overview-consumer-cdc-external-producer.png index 06580f4beb..6b155ee5c0 100644 Binary files a/reference/html/images/flow-overview-consumer-cdc-external-producer.png and b/reference/html/images/flow-overview-consumer-cdc-external-producer.png differ diff --git a/reference/html/images/flows-provider-non-jvm-consumer.png b/reference/html/images/flows-provider-non-jvm-consumer.png index d723973f15..d7216f3b1c 100644 Binary files a/reference/html/images/flows-provider-non-jvm-consumer.png and b/reference/html/images/flows-provider-non-jvm-consumer.png differ diff --git a/reference/html/images/flows-provider-non-jvm-producer.png b/reference/html/images/flows-provider-non-jvm-producer.png index bbfba469e2..b4c6149c1d 100644 Binary files a/reference/html/images/flows-provider-non-jvm-producer.png and b/reference/html/images/flows-provider-non-jvm-producer.png differ diff --git a/reference/html/images/flows-provider-rest-docs-producer.png b/reference/html/images/flows-provider-rest-docs-producer.png index f91f8f9a40..f29e9edf7a 100644 Binary files a/reference/html/images/flows-provider-rest-docs-producer.png and b/reference/html/images/flows-provider-rest-docs-producer.png differ diff --git a/reference/html/images/getting-started-cdc-client-final.png b/reference/html/images/getting-started-cdc-client-final.png index 22e2c612fa..f68a1bcac8 100644 Binary files a/reference/html/images/getting-started-cdc-client-final.png and b/reference/html/images/getting-started-cdc-client-final.png differ diff --git a/reference/html/images/getting-started-cdc-client.png b/reference/html/images/getting-started-cdc-client.png index 1c4743b0b9..e34869ddbe 100644 Binary files a/reference/html/images/getting-started-cdc-client.png and b/reference/html/images/getting-started-cdc-client.png differ diff --git a/reference/html/images/getting-started-cdc-server.png b/reference/html/images/getting-started-cdc-server.png index 5db8731e07..3990c819d2 100644 Binary files a/reference/html/images/getting-started-cdc-server.png and b/reference/html/images/getting-started-cdc-server.png differ diff --git a/reference/html/images/getting-started-three-second.png b/reference/html/images/getting-started-three-second.png index 8d35e4863c..d7286ac009 100644 Binary files a/reference/html/images/getting-started-three-second.png and b/reference/html/images/getting-started-three-second.png differ diff --git a/reference/html/images/how-to-common-repo.png b/reference/html/images/how-to-common-repo.png index f387a0bab0..0ee0c6868f 100644 Binary files a/reference/html/images/how-to-common-repo.png and b/reference/html/images/how-to-common-repo.png differ diff --git a/reference/html/images/rest-docs.png b/reference/html/images/rest-docs.png index 8274078602..e253cd9916 100644 Binary files a/reference/html/images/rest-docs.png and b/reference/html/images/rest-docs.png differ diff --git a/reference/html/project-features.html b/reference/html/project-features.html index 65a2e2d561..04f45988cb 100644 --- a/reference/html/project-features.html +++ b/reference/html/project-features.html @@ -98,14 +98,16 @@ $(addBlockSwitches);YAML
Java
+If you decide to write the contract in Groovy, do not be alarmed if you have not used Groovy -before. Knowledge of the language is not really needed, as the Contract DSL uses only a -tiny subset of it (only literals, method calls, and closures). Also, the DSL is statically -typed, to make it programmer-readable without any knowledge of the DSL itself.
-| - - | -
-Remember that, inside the Groovy contract file, you have to provide the fully
-qualified name to the Contract class and make static imports, such as
-org.springframework.cloud.spec.Contract.make { … }. You can also provide an import to
-the Contract class (import org.springframework.cloud.spec.Contract) and then call
-Contract.make { … }.
- |
-
| - - | -Spring Cloud Contract supports defining multiple contracts in a single file. |
If you are not familiar with Groovy, do not worry - you can use Java syntax in the +Groovy DSL files as well.
+If you decide to write the contract in Groovy, do not be alarmed if you have not used Groovy +before. Knowledge of the language is not really needed, as the Contract DSL uses only a +tiny subset of it (only literals, method calls, and closures). Also, the DSL is statically +typed, to make it programmer-readable without any knowledge of the DSL itself.
+| + + | +
+Remember that, inside the Groovy contract file, you have to provide the fully
+qualified name to the Contract class and make static imports, such as
+org.springframework.cloud.spec.Contract.make { … }. You can also provide an import to
+the Contract class (import org.springframework.cloud.spec.Contract) and then call
+Contract.make { … }.
+ |
+
To write a contract definition in Java, you need to create a class, that implements either the Supplier<Contract> interface for a single contract or Supplier<Collection<Contract>> for multiple contracts.
You can also write the contract definitions under src/test/java (e.g. src/test/java/contracts) so that you don’t have to modify the classpath of your project. In this case you’ll have to provide a new location of contract definitions to your Spring Cloud Contract plugin.
<plugin>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-contract-maven-plugin</artifactId>
+ <version>${spring-cloud-contract.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <contractsDirectory>src/test/java/contracts</contractsDirectory>
+ </configuration>
+</plugin>
+contracts {
+ contractsDslDir = new File(project.rootDir, "src/test/java/contracts")
+}
+If you decide to write the contract in Groovy, do not be alarmed if you have not used Groovy -before. Knowledge of the language is not really needed, as the Contract DSL uses only a -tiny subset of it (only literals, method calls, and closures). Also, the DSL is statically -typed, to make it programmer-readable without any knowledge of the DSL itself.
-| - - | -
-Remember that, inside the Groovy contract file, you have to provide the fully
-qualified name to the Contract class and make static imports, such as
-org.springframework.cloud.spec.Contract.make { … }. You can also provide an import to
-the Contract class (import org.springframework.cloud.spec.Contract) and then call
-Contract.make { … }.
- |
-
| - - | -Spring Cloud Contract supports defining multiple contracts in a single file. |
If you are not familiar with Groovy, do not worry - you can use Java syntax in the +Groovy DSL files as well.
+If you decide to write the contract in Groovy, do not be alarmed if you have not used Groovy +before. Knowledge of the language is not really needed, as the Contract DSL uses only a +tiny subset of it (only literals, method calls, and closures). Also, the DSL is statically +typed, to make it programmer-readable without any knowledge of the DSL itself.
+| + + | +
+Remember that, inside the Groovy contract file, you have to provide the fully
+qualified name to the Contract class and make static imports, such as
+org.springframework.cloud.spec.Contract.make { … }. You can also provide an import to
+the Contract class (import org.springframework.cloud.spec.Contract) and then call
+Contract.make { … }.
+ |
+
To write a contract definition in Java, you need to create a class, that implements either the Supplier<Contract> interface for a single contract or Supplier<Collection<Contract>> for multiple contracts.
You can also write the contract definitions under src/test/java (e.g. src/test/java/contracts) so that you don’t have to modify the classpath of your project. In this case you’ll have to provide a new location of contract definitions to your Spring Cloud Contract plugin.
<plugin>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-contract-maven-plugin</artifactId>
+ <version>${spring-cloud-contract.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <contractsDirectory>src/test/java/contracts</contractsDirectory>
+ </configuration>
+</plugin>
+contracts {
+ contractsDslDir = new File(project.rootDir, "src/test/java/contracts")
+}
+