Open Wiesbond opened 2 years ago
It's a transitive runtime dependency:
au.com.dius.pact.consumer:junit5:4.3.8
-> au.com.dius.pact.consumer:4.3.8
-> org.json:json:20210307
Are you using Maven? You might need to add that to your project if your dependency resolution is not working.
Same issue for me. I had to include in my dependencies
testImplementation("org.json:json:20210307")
I have following pact and test in version 4.3.8
and I have got error: class file for org.json.JSONObject not found for .body("ala") in creating pact.
Looks like dependency org.json:json is missing in au.com.dius.pact.consumer:junit5:4.3.8