Closed gregbarton closed 3 years ago
Placing an explicit dependency to version 4.9.1 in my maven build seems to have fixed the issue for now.
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.9.1</version>
</dependency>
But this is not an optimal solution.
This is likely due to transitive dependencies that Maven puts on the classpath. Another user opened an issue for the same reason here: #102. As far as I know, the only way to fix this with Maven is to explicitly specify the version of OkHttp
you want to use by adding that dependency to your pom.xml
as you have done. Another alternative is to use Gradle instead of Maven which features the implementation
dependency clause which prevents putting transitive dependencies on the classpath.
@gregbarton were you able to resolve this issue?
Yeah, with the explicitly specified okhttp3 dependency. No issues since then.
While attempting to execute orders I'm getting the following exception:
I notice that, despite there being a dependency on okhttp3 v4.9.1 the only version being downloaded during build is 3.14.9.