Closed yoka791 closed 5 years ago
The Pact-JVM Maven plugin supports publishing pact files to a broker. See https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-provider-maven#publishing-pact-files-to-a-pact-broker.
I'm not sure what you mean by "I want to have an option to set those options during the build phase in the CI". Do you mean the Maven build phase, or are you referring to a build step in your CI?
Maven does support project properties. Refer to the Maven docs on how to use those.
hi, I think this is current url https://github.com/DiUS/pact-jvm/tree/master/provider/maven#publishing-pact-files-to-a-pact-broker
Why is this plugin in a group that contains provider
(au.com.dius.pact.provider) when actually you need it to publish consumer contracts as well? This confused me quite a lot.
Hi, I am trying to use pact-jvm-consumer-junit for my consumer (it uses junit/spring). I want to publish the pact file to my pact broker during the CI. I saw here that the only (am I correct?) option to upload a pact from the consumer side is to use a plugin named pact-jvm-provider-gradle. There, when I add the plugin in pom.xml I can set pact broker's url/tag etc..
But - I want to have an option to set those options during the build phase in the CI. How can I do that? Thanks.