Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Without Spring dependency? #1728

Open
gruenich opened this issue Nov 9, 2023 · 4 comments
Open

Without Spring dependency? #1728

gruenich opened this issue Nov 9, 2023 · 4 comments
Labels
question Indicates that an issue, pull request, or discussion needs more information

Comments

@gruenich
Copy link

gruenich commented Nov 9, 2023

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 rholshausen added the question Indicates that an issue, pull request, or discussion needs more information label Nov 9, 2023
@rholshausen
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

@gruenich
Copy link
Author

We created #1744 as a first proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Indicates that an issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

2 participants