pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 478 forks source link

Without Spring dependency? #1728

Open gruenich opened 10 months ago

gruenich commented 10 months ago

Is it possible to use pact-jvm without any Spring dependency? Are any features only usable with Spring?

Would it be worth to create a pull request that would make the Spring dependency optional, replacing the Springt part by pure Java?

rholshausen commented 10 months ago

Pact-JVM is pure JVM. Only the modules with spring in the names have dependencies on Spring. The core JUnit 5 support does not.

gruenich commented 9 months ago

Okay, to be more precise: You do not provide examples for consumer and producer in pure Java, only Spring, Scala, Kotlin etc. Would you be interested in a pull request providing such a plain Java example?

rholshausen commented 9 months ago

Sure, a PR is always welcome. There are also lots of example projects, for instance, https://github.com/pactflow/example-consumer-java-junit

gruenich commented 9 months ago

We created #1744 as a first proposal.