Hey Team:wave:, I am trying to publish pact with v...
# pact-jvm
j
Hey Team👋, I am trying to publish pact with version using gradle plugin. [au.com.dius.pact:4.1.34] below is the config
Copy code
pact {
    publish {
        pactDirectory = "$buildDir/pacts"
        pactBrokerUrl = '<https://pact.sample.com/>'
        pactBrokerUsername = 'username'
        pactBrokerPassword = System.getenv("PACT_PASSWORD")
        version = System.getenv("COMMIT_HASH")
    }
}
with this config the project version is affected and changed to the version of
pact
I want to keep actual project version
1.0-SNAPSHOT
and pact consumer version to
COMMIT_HASH
,. Is it possible or am i missing something here? pact-broker version
2.94.0.0
m
Looks like a question for #pact-jvm
j
any help here 🙏
m
Oh, strange, I swear when I answered before it was in general. My apologies Jayachandra
👍 1
https://docs.pact.io/implementation_guides/jvm/provider/gradle#verifying-pact-files-from-a-s3-bucket this seems to indicate it should be
consumerVersion
and not
version
.
j
thank you so much
🙌 1
it worked