-
Notifications
You must be signed in to change notification settings - Fork 437
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 theProtocolResolvermethods returnnull. -
stubRunnerOptions.stubRepositoryRootis aResourcenot aString -
generateWireMockClientStubsGradle 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
-
PactConverterreturns a collection of Pact contracts instead of one (see https://github.com/spring-cloud/spring-cloud-contract/commit/d942bfd9d127489c447ebae3221e063099420492#diff-3c9a6ccf897ca28d932eb2bef60dc2e9R27) - The
testMatchersandstubMatchershave been deprecated in favour ofbodyMatchersthat should be called inrequestandresponseclosures