-
Notifications
You must be signed in to change notification settings - Fork 435
Spring Cloud Contract 2.0 Migration Guide
Marcin Grzejszczak edited this page Mar 31, 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