Skip to content

Spring Cloud Contract 1.0.0 M2 Release Notes

Marcin Grzejszczak edited this page Aug 26, 2016 · 8 revisions

For changes in earlier milestones, please refer to:

v1.0.0.M1

Upgrading from Spring Cloud Contract 1.0.0 M1

Stubs configuration in YAML

With this feature the @AutoConfigureStubRunner annotation can pass additional information. Example

@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"}, workOffline = true)
public class LoanApplicationServiceTests {

What needs to be migrated when going from M1 -> M2 are the property values. We used to have the subproperty stubs in the props:

stubrunner.stubs:
    ids: 'com.example:http-server-dsl:+:stubs:8080'		    
    repositoryRoot: http://repo.spring.io/libs-snapshot

Now this subproperty is removed

stubrunner:
    ids: 'com.example:http-server-dsl:+:stubs:8080'		    
    repositoryRoot: http://repo.spring.io/libs-snapshot

So *wherever you have the property stubrunner.stubs you have to migrate it to stubrunner.

Migration Guides

Clone this wiki locally