-
@Value("${stubrunner.runningstubs.beer-api-producer-advanced.port}") int stubPort;
+@Value("${spring.cloud.contract.stubrunner.runningstubs.beer-api-producer-advanced.port}") int stubPort;
@BeforeEach
public void setupPort() {
diff --git a/docs/tutorials/stubbing_out_service_discovery.adoc b/docs/tutorials/stubbing_out_service_discovery.adoc
index b8e027b1a..a42a2f4a2 100644
--- a/docs/tutorials/stubbing_out_service_discovery.adoc
+++ b/docs/tutorials/stubbing_out_service_discovery.adoc
@@ -76,13 +76,13 @@ Now let's assume that we call the producer application by using the
`http://somenameforproducer/check` URL. You need to provide some properties to tell Stub
Runner that the given service name (in our case, `somenameforproducer`) should be mapped
to the running HTTP server stub of a given producer. Let's set those properties.
-Stub Runner requires you to set the `stubrunner.idsToServiceIds` mapping in which the key
+Stub Runner requires you to set the `spring.cloud.contract.stubrunner.idsToServiceIds` mapping in which the key
is the artifact ID and the value is the service name in the code. You also need to define
the `idsToServiceIds` property, as shown in the following code:
[source,yml]
----
-stubrunner:
+spring.cloud.contract.stubrunner:
idsToServiceIds:
beer-api-producer: somenameforproducer
----
diff --git a/docs/tutorials/stubbing_out_service_discovery.html b/docs/tutorials/stubbing_out_service_discovery.html
index a216fc31f..790754ea3 100644
--- a/docs/tutorials/stubbing_out_service_discovery.html
+++ b/docs/tutorials/stubbing_out_service_discovery.html
@@ -659,7 +659,7 @@ Consumer flow 1
-
stubrunner:
+spring.cloud.contract.stubrunner:
idsToServiceIds:
beer-api-producer: somenameforproducer
diff --git a/producer/src/main/resources/application.yml b/producer/src/main/resources/application.yml
index a2c5e528f..2312c3e5e 100644
--- a/producer/src/main/resources/application.yml
+++ b/producer/src/main/resources/application.yml
@@ -1,7 +1,6 @@
spring:
application.name: beer-api-producer
cloud.stream.bindings.output-out-0:
-
destination: verifications
server.port: ${PORT:8080}
diff --git a/standalone/dsl/http-client/src/test/resources/application-gradle.yaml b/standalone/dsl/http-client/src/test/resources/application-gradle.yaml
index f6aecb9b1..7b120a94b 100644
--- a/standalone/dsl/http-client/src/test/resources/application-gradle.yaml
+++ b/standalone/dsl/http-client/src/test/resources/application-gradle.yaml
@@ -1,2 +1,2 @@
-stubrunner:
+spring.cloud.contract.stubrunner:
stubs-mode: local
diff --git a/standalone/dsl/http-client/src/test/resources/application-test-repo.yaml b/standalone/dsl/http-client/src/test/resources/application-test-repo.yaml
index 512cbc68e..cc0f21ce6 100644
--- a/standalone/dsl/http-client/src/test/resources/application-test-repo.yaml
+++ b/standalone/dsl/http-client/src/test/resources/application-test-repo.yaml
@@ -1,3 +1,3 @@
-stubrunner:
+spring.cloud.contract.stubrunner:
ids: 'com.example:http-server-dsl:+:stubs:8080'
repositoryRoot: https://repo.spring.io/libs-snapshot
diff --git a/standalone/restdocs/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java b/standalone/restdocs/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
index 7398319c0..c38a5b67e 100644
--- a/standalone/restdocs/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
+++ b/standalone/restdocs/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
@@ -40,7 +40,7 @@ class LoanApplicationServiceusingStubRunnerTests {
@Autowired
LoanApplicationService service;
- @Value("${stubrunner.runningstubs.http-server-restdocs.port}")
+ @Value("${spring.cloud.contract.stubrunner.runningstubs.http-server-restdocs.port}")
int port;
@BeforeEach
diff --git a/standalone/restdocs/http-client/src/test/java/com/example/loan/XmlServiceUsingStubRunnerTests.java b/standalone/restdocs/http-client/src/test/java/com/example/loan/XmlServiceUsingStubRunnerTests.java
index eeae3f388..9a26f0cbe 100644
--- a/standalone/restdocs/http-client/src/test/java/com/example/loan/XmlServiceUsingStubRunnerTests.java
+++ b/standalone/restdocs/http-client/src/test/java/com/example/loan/XmlServiceUsingStubRunnerTests.java
@@ -36,7 +36,7 @@
@AutoConfigureStubRunner(ids = "com.example:http-server-restdocs")
class XmlServiceUsingStubRunnerTests {
- @Value("${stubrunner.runningstubs.http-server-restdocs.port}")
+ @Value("${spring.cloud.contract.stubrunner.runningstubs.http-server-restdocs.port}")
int port;
@Test
diff --git a/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerGradleTests.java b/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerGradleTests.java
index e75bbbae9..96d5e9c94 100644
--- a/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerGradleTests.java
+++ b/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerGradleTests.java
@@ -40,7 +40,7 @@ public class LoanApplicationServiceusingStubRunnerGradleTests {
@Autowired
LoanApplicationService service;
- @Value("${stubrunner.runningstubs.http-server-webclient.port}")
+ @Value("${spring.cloud.contract.stubrunner.runningstubs.http-server-webclient.port}")
int port;
@BeforeEach
diff --git a/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java b/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
index e1c1c13ec..4ae83089c 100644
--- a/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
+++ b/standalone/webclient/http-client/src/test/java/com/example/loan/LoanApplicationServiceusingStubRunnerTests.java
@@ -40,7 +40,7 @@ public class LoanApplicationServiceusingStubRunnerTests {
@Autowired
LoanApplicationService service;
- @Value("${stubrunner.runningstubs.http-server-webclient.port}")
+ @Value("${spring.cloud.contract.stubrunner.runningstubs.http-server-webclient.port}")
int port;
@BeforeEach