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

Update wiremock dependency to be compatible with wiremock-standalone #2104

Open
kumarsen26 opened this issue Feb 22, 2024 · 4 comments
Open

Comments

@kumarsen26
Copy link

kumarsen26 commented Feb 22, 2024

Describe the bug
Getting below error when using latest dependency of wiremock in the project.

java.lang.NoSuchMethodError: 'void com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer.<init>(boolean)'

Sample
Currently spring-cloud-contract-wiremock is using older wiremock dependency..

<dependency>
	<groupId>com.github.tomakehurst</groupId>
	<artifactId>wiremock-jre8-standalone</artifactId>
</dependency>

It should be compatible with

<dependency>
    <groupId>org.wiremock</groupId>
    <artifactId>wiremock-standalone</artifactId>
</dependency>
@digambar19
Copy link

digambar19 commented Feb 24, 2024

@kumarsen26 , did you find work arround for this issue?

@kumarsen26
Copy link
Author

kumarsen26 commented Feb 25, 2024

@digambar19 I removed the dependency which I have added to the project and use the wiremock-jre8-standalone resolved from spring-cloud-contract

@kumarsen26 kumarsen26 changed the title Update wiremock dependency Update wiremock dependency to be compatible with wiremock-standalone Feb 25, 2024
@OmarHawk
Copy link

#1933

@zyberzebra
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants