wiremock: Wiremock 2.27.0 breaks compatibility with Android because requires Java 8
With WireMock 2.27.0 (configured using a junit rule) our Android tests started failing with java.lang.NoClassDefFoundError: Failed resolution of: Ljava/nio/file/Paths;
. It seems that a recent change introduced the usage of the Paths
class, which is not available on all Android versions.
Since I don’t see this compatibility change being mentioned in the changelog, I’m reporting this issue to double check that it’s an intended change.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 18 (9 by maintainers)
Have the same bug after update to 2.27.1
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/ssl/NoopHostnameVerifier; at com.github.tomakehurst.wiremock.http.HttpClientFactory.buildSslConnectionSocketFactory(HttpClientFactory.java:105) at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:95) at com.github.tomakehurst.wiremock.http.ProxyResponseRenderer.<init>(ProxyResponseRenderer.java:77) at com.github.tomakehurst.wiremock.core.WireMockApp.buildStubRequestHandler(WireMockApp.java:149) at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:75) at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:112)