Skip to content

SpectoLabs/spring-cloud-contract-blog

Repository files navigation

spring-cloud-contract-blog

Vanilla implementations for Account and Subscription microservices for demonstrating Consumer-Driven Contracts using Spring Cloud Contract

Requirements

Install Maven

This project use local maven repository to share stubs file

# Mac OS
brew install maven
# Ubuntu
apt-get install maven
Install Gradle
# Mac OS
brew install gradle
# Ubuntu
apt-get install gradle

Usage

Use Gradle to test, build and publish artifacts for local development.

subscription-service (consumer) tasks
  • test - Runs the unit tests
  • build - Test and assemble uber jar
account-service (producer) tasks

In addition to test and build, there are other tasks specific to the producer:

  • generateContractTests - Generate API verification tests from the contracts
  • generateWireMockClientStubs - Generate WireMock client stubs from the contracts
  • install - Install artifacts including stubs.jar into the local Maven repository
  • uploadArchives - Upload artifacts to remote repository

Links

More details can be found on the blog.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published