Hi :slightly_smiling_face: I'm trying to use `con...
# pact-jvm
r
Hi 🙂 I'm trying to use
consumerVersionSelectors
from the
PactBroker
annotation on my provider application, and I have a doubt. Looking into the VersionSelector code, it only allows you to select tags, not branches or environments. I think what I would need is to get the latest from the main branch (
master
) and the latest from production. My question is, even if I'm using
branches
and
environments
, should I also add tags from my consumer for both branches and environments?
b
You can use branches with the
pactbroker.consumerversionselectors.rawjson
system property, but not the annotation
eg:
Copy code
<pactbroker.consumerversionselectors.rawjson>[{ "mainBranch": true },{ "deployedOrReleased": true }]</pactbroker.consumerversionselectors.rawjson>
r
Thank you Ben 🙂 After reading your message, I found this issue explaining the workaround you proposed: https://github.com/pact-foundation/pact-jvm/pull/1471
I will try it 🙂