Fork me on GitHub

spring-cloud-contract:generateStubs

Full name:

org.springframework.cloud:spring-cloud-contract-maven-plugin:3.1.2:generateStubs

Description:

Picks the converted .json files and creates a jar. Requires convert to be executed first.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
<classifier> String - (no description)
Default value is: stubs.
<excludedFiles> String[] - Patterns that should not be taken into account for processing.
<failOnNoContracts> boolean - When enabled, this flag will tell stub runner to throw an exception when no stubs / contracts were found.
Default value is: true.
User property is: failOnNoContracts.
<incrementalContractStubsJar> boolean - If set to true then stubs jar is created only when stubs have changed since last build.
Default value is: true.
User property is: incrementalContractStubsJar.
<jarSkip> boolean - Set this to "true" to bypass only JAR creation.
Default value is: false.
User property is: spring.cloud.contract.verifier.jar.skip.
<outputDirectory> File - (no description)
Default value is: ${project.build.directory}/stubs.
User property is: stubsDirectory.
<skip> boolean - Set this to "true" to bypass the whole Verifier execution.
Default value is: false.
User property is: spring.cloud.contract.verifier.skip.

Parameter Details

<classifier>

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: stubs

<excludedFiles>

Patterns that should not be taken into account for processing.
  • Type: java.lang.String[]
  • Required: No

<failOnNoContracts>

When enabled, this flag will tell stub runner to throw an exception when no stubs / contracts were found.
  • Type: boolean
  • Required: No
  • User Property: failOnNoContracts
  • Default: true

<incrementalContractStubsJar>

If set to true then stubs jar is created only when stubs have changed since last build.
  • Type: boolean
  • Required: No
  • User Property: incrementalContractStubsJar
  • Default: true

<jarSkip>

Set this to "true" to bypass only JAR creation.
  • Type: boolean
  • Required: No
  • User Property: spring.cloud.contract.verifier.jar.skip
  • Default: false

<outputDirectory>

(no description)
  • Type: java.io.File
  • Required: No
  • User Property: stubsDirectory
  • Default: ${project.build.directory}/stubs

<skip>

Set this to "true" to bypass the whole Verifier execution.
  • Type: boolean
  • Required: No
  • User Property: spring.cloud.contract.verifier.skip
  • Default: false