https://pact.io logo
#pact-jvm
Title
# pact-jvm
j

Jayachandra K

03/17/2022, 6:32 AM
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

Matt (pactflow.io / pact-js / pact-go)

03/17/2022, 7:22 AM
Looks like a question for #pact-jvm
j

Jayachandra K

03/17/2022, 11:22 AM
any help here 🙏
m

Matt (pactflow.io / pact-js / pact-go)

03/17/2022, 11:25 AM
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

Jayachandra K

03/17/2022, 1:50 PM
thank you so much
🙌 1
it worked
5 Views