Annotation Interface VersionSelector


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface VersionSelector
Used to specify which versions to use when querying the Pact matrix.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Consumer name to fetch pacts for.
    If a pact for the specified tag does not exist, then use this tag as a fallback.
    "true" to fetch the latest version of the pact, or "false" to fetch all versions
    Tags to use to fetch pacts for.
  • Element Details

    • tag

      String tag
      Tags to use to fetch pacts for. Empty string represents all tags.
      Default:
      ""
    • latest

      String latest
      "true" to fetch the latest version of the pact, or "false" to fetch all versions
      Default:
      "true"
    • consumer

      String consumer
      Consumer name to fetch pacts for. Empty string represents all consumers
      Default:
      ""
    • fallbackTag

      String fallbackTag
      If a pact for the specified tag does not exist, then use this tag as a fallback. This is useful for co-ordinating development between consumer and provider teams when matching branch names are used.
      Default:
      ""