From 76f7a6fe7acdcda24b44c3204c950da72727414b Mon Sep 17 00:00:00 2001 From: Gloria Ciavarrini Date: Fri, 7 Apr 2023 16:07:08 +0200 Subject: [PATCH] Fix OkHttp dependency issue `auth0-java` library uses `OkHttp` version 4 as the networking client used to make requests to the Auth0 Authentication and Management APIs. When using Spring's depdendency management, `java.lang.NoSuchMethodError` exception is thrown when making requests, related to Spring's dependency management using OkHttp 3. See https://github.com/auth0/auth0-java/pull/342/files and https://github.com/auth0/auth0-java/issues/324 Signed-off-by: Gloria Ciavarrini --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 94e64a084..c708a2cad 100644 --- a/pom.xml +++ b/pom.xml @@ -59,6 +59,7 @@ 4.13.1 3.5.13 3.17.2 + 4.9.2 workflow-engine @@ -108,6 +109,17 @@ ${assertj.version} test + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} +