-
Notifications
You must be signed in to change notification settings - Fork 439
Spring Cloud Contract 2.0 Migration Guide
Marcin Grzejszczak edited this page Apr 2, 2018
·
5 revisions
Spring Cloud Contract 2.0 Migration Guide
IMPORTANT: This migration guide is a work in progress
Related to https://github.com/spring-cloud/spring-cloud-contract/issues/287.
Change workOffline
in @AutoConfigureStubRunner
to stubsMode = StubRunnerProperties.StubsMode.LOCAL
.
Change contractsWorkOffline
to <contractsMode>LOCAL</contractsMode>
Change contractsWorkOffline = true
to contractsMode = "LOCAL"
Related to https://github.com/spring-cloud/spring-cloud-contract/pull/596
-
StubDownloaderBuilder extends ProtocolResovler
. By default theProtocolResolver
methods returnnull
. -
stubRunnerOptions.stubRepositoryRoot
is aResource
not aString
-
generateWireMockClientStubs
Gradle task got removed - if folder with contracts has a subfolder called contracts, we will pick contracts from the subfolder
Related to https://github.com/spring-cloud/spring-cloud-contract/pull/569
-
PactConverter
returns a collection of Pact contracts instead of one (see https://github.com/spring-cloud/spring-cloud-contract/commit/d942bfd9d127489c447ebae3221e063099420492#diff-3c9a6ccf897ca28d932eb2bef60dc2e9R27) - The
testMatchers
andstubMatchers
have been deprecated in favour ofbodyMatchers
that should be called inrequest
andresponse
closures