Skip to content

Commit f505a24

Browse files
Added migration for deprecated properties
related to gh-2309 Signed-off-by: marcin <marcin.grzejszczak@gmail.com>
1 parent aab8560 commit f505a24

1 file changed

Lines changed: 221 additions & 0 deletions

File tree

spring-cloud-contract-stub-runner/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,226 @@
11
{
22
"properties": [
3+
{
4+
"name": "stubrunner.minPort",
5+
"type": "java.lang.Integer",
6+
"description": "Min value of a port for the automatically started WireMock server.",
7+
"defaultValue": 10000,
8+
"deprecation": {
9+
"replacement": "spring.cloud.contract.stubrunner.minPort",
10+
"since": "5.0.0"
11+
}
12+
},
13+
{
14+
"name": "stubrunner.maxPort",
15+
"type": "java.lang.Integer",
16+
"description": "Max value of a port for the automatically started WireMock server.",
17+
"defaultValue": 15000,
18+
"deprecation": {
19+
"replacement": "spring.cloud.contract.stubrunner.maxPort",
20+
"since": "5.0.0"
21+
}
22+
},
23+
{
24+
"name": "stubrunner.repositoryRoot",
25+
"type": "java.lang.String",
26+
"description": "The repository root to use (where the stubs should be downloaded from).",
27+
"deprecation": {
28+
"replacement": "spring.cloud.contract.stubrunner.repositoryRoot",
29+
"since": "5.0.0"
30+
}
31+
},
32+
{
33+
"name": "stubrunner.ids",
34+
"type": "java.lang.String[]",
35+
"description": "The ids of the stubs to run in \"ivy\" notation ([groupId]:artifactId:[version]:[classifier][:port]).",
36+
"deprecation": {
37+
"replacement": "spring.cloud.contract.stubrunner.ids",
38+
"since": "5.0.0"
39+
}
40+
},
41+
{
42+
"name": "stubrunner.classifier",
43+
"type": "java.lang.String",
44+
"description": "The classifier to use by default in ivy co-ordinates for a stub.",
45+
"defaultValue": "stubs",
46+
"deprecation": {
47+
"replacement": "spring.cloud.contract.stubrunner.classifier",
48+
"since": "5.0.0"
49+
}
50+
},
51+
{
52+
"name": "stubrunner.username",
53+
"type": "java.lang.String",
54+
"description": "Repository username.",
55+
"deprecation": {
56+
"replacement": "spring.cloud.contract.stubrunner.username",
57+
"since": "5.0.0"
58+
}
59+
},
60+
{
61+
"name": "stubrunner.password",
62+
"type": "java.lang.String",
63+
"description": "Repository password.",
64+
"deprecation": {
65+
"replacement": "spring.cloud.contract.stubrunner.password",
66+
"since": "5.0.0"
67+
}
68+
},
69+
{
70+
"name": "stubrunner.stubsPerConsumer",
71+
"type": "java.lang.Boolean",
72+
"description": "Should only stubs for this particular consumer get registered in HTTP server stub.",
73+
"defaultValue": false,
74+
"deprecation": {
75+
"replacement": "spring.cloud.contract.stubrunner.stubsPerConsumer",
76+
"since": "5.0.0"
77+
}
78+
},
79+
{
80+
"name": "stubrunner.consumerName",
81+
"type": "java.lang.String",
82+
"description": "You can override the default spring.application.name of this field by setting a value to this parameter.",
83+
"deprecation": {
84+
"replacement": "spring.cloud.contract.stubrunner.consumerName",
85+
"since": "5.0.0"
86+
}
87+
},
88+
{
89+
"name": "stubrunner.stubsMode",
90+
"type": "org.springframework.cloud.contract.stubrunner.spring.StubRunnerProperties$StubsMode",
91+
"description": "Pick where the stubs should come from.",
92+
"deprecation": {
93+
"replacement": "spring.cloud.contract.stubrunner.stubsMode",
94+
"since": "5.0.0"
95+
}
96+
},
97+
{
98+
"name": "stubrunner.idsToServiceIds",
99+
"type": "java.util.Map<java.lang.String,java.lang.String>",
100+
"description": "Mapping of Ivy notation based ids to serviceIds inside your application.",
101+
"deprecation": {
102+
"replacement": "spring.cloud.contract.stubrunner.idsToServiceIds",
103+
"since": "5.0.0"
104+
}
105+
},
106+
{
107+
"name": "stubrunner.cloud.delegate.enabled",
108+
"type": "java.lang.Boolean",
109+
"description": "Whether to enable DiscoveryClient's Stub Runner implementation.",
110+
"defaultValue": true,
111+
"deprecation": {
112+
"replacement": "spring.cloud.contract.stubrunner.cloud.delegate.enabled",
113+
"since": "5.0.0"
114+
}
115+
},
116+
{
117+
"name": "stubrunner.stream.enabled",
118+
"type": "java.lang.Boolean",
119+
"description": "Whether to enable Stub Runner integration with Spring Cloud Stream.",
120+
"defaultValue": true,
121+
"deprecation": {
122+
"replacement": "spring.cloud.contract.stubrunner.stream.enabled",
123+
"since": "5.0.0"
124+
}
125+
},
126+
{
127+
"name": "stubrunner.integration.enabled",
128+
"type": "java.lang.Boolean",
129+
"description": "Whether to enable Stub Runner integration with Spring Integration.",
130+
"defaultValue": true,
131+
"deprecation": {
132+
"replacement": "spring.cloud.contract.stubrunner.integration.enabled",
133+
"since": "5.0.0"
134+
}
135+
},
136+
{
137+
"name": "stubrunner.camel.enabled",
138+
"type": "java.lang.Boolean",
139+
"description": "Whether to enable Stub Runner integration with Apache Camel.",
140+
"defaultValue": true,
141+
"deprecation": {
142+
"replacement": "spring.cloud.contract.stubrunner.camel.enabled",
143+
"since": "5.0.0"
144+
}
145+
},
146+
{
147+
"name": "stubrunner.properties.git.branch",
148+
"type": "java.lang.String",
149+
"description": "Branch to check out for the git repository.",
150+
"defaultValue": "master",
151+
"deprecation": {
152+
"replacement": "spring.cloud.contract.stubrunner.properties.git.branch",
153+
"since": "5.0.0"
154+
}
155+
},
156+
{
157+
"name": "stubrunner.properties.git.username",
158+
"type": "java.lang.String",
159+
"description": "Git repository username.",
160+
"deprecation": {
161+
"replacement": "spring.cloud.contract.stubrunner.properties.git.username",
162+
"since": "5.0.0"
163+
}
164+
},
165+
{
166+
"name": "stubrunner.properties.git.password",
167+
"type": "java.lang.String",
168+
"description": "Git repository password.",
169+
"deprecation": {
170+
"replacement": "spring.cloud.contract.stubrunner.properties.git.password",
171+
"since": "5.0.0"
172+
}
173+
},
174+
{
175+
"name": "stubrunner.properties.git.commit-message",
176+
"type": "java.lang.String",
177+
"description": "Commit message when updating stubs in the git repository.",
178+
"defaultValue": "Updating project [$project] with stubs",
179+
"deprecation": {
180+
"replacement": "spring.cloud.contract.stubrunner.properties.git.commit-message",
181+
"since": "5.0.0"
182+
}
183+
},
184+
{
185+
"name": "stubrunner.properties.git.no-of-attempts",
186+
"type": "java.lang.Integer",
187+
"description": "Number of attempts to push changes to the git repository.",
188+
"defaultValue": 10,
189+
"deprecation": {
190+
"replacement": "spring.cloud.contract.stubrunner.properties.git.no-of-attempts",
191+
"since": "5.0.0"
192+
}
193+
},
194+
{
195+
"name": "stubrunner.properties.git.wait-between-attempts",
196+
"type": "java.lang.Long",
197+
"description": "Wait time in ms between attempts to push changes to the git repository.",
198+
"defaultValue": 1000,
199+
"deprecation": {
200+
"replacement": "spring.cloud.contract.stubrunner.properties.git.wait-between-attempts",
201+
"since": "5.0.0"
202+
}
203+
},
204+
{
205+
"name": "stubrunner.properties.git.ensure-git-suffix",
206+
"type": "java.lang.Boolean",
207+
"description": "Whether to ensure the .git suffix is appended to the repository URL.",
208+
"defaultValue": true,
209+
"deprecation": {
210+
"replacement": "spring.cloud.contract.stubrunner.properties.git.ensure-git-suffix",
211+
"since": "5.0.0"
212+
}
213+
},
214+
{
215+
"name": "stubrunner.properties.stubs.find-producer",
216+
"type": "java.lang.Boolean",
217+
"description": "Whether to find the producer from the stubs protocol path.",
218+
"defaultValue": false,
219+
"deprecation": {
220+
"replacement": "spring.cloud.contract.stubrunner.properties.stubs.find-producer",
221+
"since": "5.0.0"
222+
}
223+
},
3224
{
4225
"name": "spring.cloud.contract.stubrunner.amqp.enabled",
5226
"type": "java.lang.Boolean",

0 commit comments

Comments
 (0)