Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keyboardsamurai/a3202b8132c9173531c79ea87f9fa597 to your computer and use it in GitHub Desktop.
Save keyboardsamurai/a3202b8132c9173531c79ea87f9fa597 to your computer and use it in GitHub Desktop.
Maven cloud contract plugin configuration
<plugin>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-maven-plugin</artifactId>
<version>1.1.0.RELEASE</version>
<extensions>true</extensions>
<configuration>
<testMode>EXPLICIT</testMode>
<packageWithBaseClasses>com.acme.foobar.core.service.config</packageWithBaseClasses>
<baseClassForTests>ContractVerifierBase</baseClassForTests>
</configuration>
<executions>
<execution>
<id>spring-cloud-generateTests</id>
<phase>compile</phase>
<goals>
<goal>generateTests</goal>
</goals>
</execution>
<execution>
<id>spring-cloud-generateStubs</id>
<phase>install</phase>
<goals>
<goal>generateStubs</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment