This message was deleted.
# wiremock-java
s
This message was deleted.
o
I suspect your updated to Jetty 12 as a transitive dependency. At the moment we distribute with Jetty 11, one may expect such compatibility issues. I think it would be better if we ship an experimental Jetty 12 extension answer the comment away to exclude Jetty 11 (or ship a headless WireMock distro) @Tom
l
@Emmanuel Godwin have you tried switching to the standalone WireMock JAR in your dependencies ?
o
@Lee Turner it is already a standalone one but a 2.x one. Updating to 3.x might help but I doubt that
l
Yeah, I wasn’t sure either. I saw the jre-8 stand-alone but noticed it was part of the exclude group
e
@Oleg Nenashev How do I reflect the 2.x => 3.x update in the build?
l
You can add the latest wiremock standalone to your build as a normal dependency. You need
wiremock-standalone
as the artifactId and
3.3.1
as the version
e
@Lee Turner It worked! Thanks.
👍 1
l
Awesome stuff. 👍
e
I was thinking. What could be done so that everything works automatically by just including the stub runner in the spring application?
l
I think like Oleg mentioned, we will have to release a wiremock version with the updated jetty dependency
e
Oh I see. Alright then.
a
I'm sure you are way ahead of me. But just in case it can help anyone to build the extension, or for reference, or anything else, I've found this branch for which I've stabilised all of the tests with Jetty12 very useful for Spring Boot 3.2.0 upgrade work, avoiding a need for standalone wiremock, which is working well, at least for my needs. This this guide for Jetty 12 migration was helpful to me. This is the branch https://github.com/alexwatts/wiremock/tree/jetty-12-alpha
🙌 3
👀 1
t
Thanks for sharing this @alex watts!
🙏 1
😊 1