Closed wmunyan closed 4 months ago
Don't mix major Pact-JVM versions. You're using both 4.3.19
and 4.0.10
.
The highest available version of au.com.dius:pact-jvm-consumer-junit
is 4.0.10
per https://mvnrepository.com/artifact/au.com.dius/pact-jvm-consumer-junit
The highest available version of au.com.dius:pact-jvm-provider-gradle
is 4.0.10
per https://mvnrepository.com/artifact/au.com.dius/pact-jvm-provider-gradle
Use au.com.dius.pact.consumer:junit:4.3.19
and au.com.dius.pact.provider:gradle:4.3.19
I get the same issue when I have no pact dependencies added in.
Attempting with gradle plugin version 4.6.1
and gradle version 7.4.2
.
However, if I roll back the pact gradle plugin and add the latest dependencies like this:
plugins {
...
id 'au.com.dius.pact' version '4.3.12'
}
And try to include these dependencies:
{
...
testImplementation 'au.com.dius.pact.provider:junit5spring:4.6.1'
testImplementation 'au.com.dius.pact.consumer:junit5:4.6.1'
}
I get this exception for both of the dependencies:
Cannot invoke "org.gradle.api.artifacts.VersionConstraint.getRequiredVersion()" because "cst" is null
The same thing happens if I use the gradle plugin version of 4.6.1
to match up with the dependency version.
The only way I can get it to work is rollback the plugin and the dependencies to 4.3.19
(4.4.0 has the same issues)
These must be the same:
I am using gradle with the following plugins section:
and some test dependencies:
However, if I try to use any version higher than
4.3.19
, executing any gradle tasks fails with the following error:It looks as though I am using gradle
7.4.2
, if that helps. Thanks for any help!