Hi, I'm using the pact gradle plugin <https://plug...
# pact-jvm
k
Hi, I'm using the pact gradle plugin https://plugins.gradle.org/plugin/au.com.dius.pact I have an issue with the canIDeploy task. I have a service that is both consumer and provider for APIs. I gave both internal service different names. For each pull request, both the consumer and provider tests are run. The canIDeploy task only takes one pacticipant and version. The issue is, that the canIDeploy task always verifies the latest version of the provider. Inside the PR, I just want to check whether the code state of the PR is consistent. Otherwise, another PR is creating an updated version and a race condition occurs where only the latest PR is green for canIDeploy. I think this should be solvable with specifying both services and versions together. The CLI seems to allow this, the plugin does not. Is there another way to prevent this race condition?
r
The Gradle plugin has not been updated in a long time. It may be better to stick to using the CLI as it is better supported.
k
CLI has some disadvantages because you need an extra tool, clearance, and most importantly, you need control over the environment where this is running Due to todays huge amount of security topics, I have different environments where any of these is a problem
r
There is no plan to update the Gradle plugin. Your best course of action is to raise a GitHub issue for this. If you are up to providing a PR for the changes, that would help a lot.