Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Fix OkHttp dependency issue
Browse files Browse the repository at this point in the history
`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 auth0/auth0-java#324

Signed-off-by: Gloria Ciavarrini <gciavarrini@redhat.com>
  • Loading branch information
gciavarrini authored and openshift-merge-robot committed Apr 11, 2023
1 parent 49fe13c commit 76f7a6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<junit.version>4.13.1</junit.version>
<mockito.version>3.5.13</mockito.version>
<assertj.version>3.17.2</assertj.version>
<okhttp-version>4.9.2</okhttp-version>
</properties>
<modules>
<module>workflow-engine</module>
Expand Down Expand Up @@ -108,6 +109,17 @@
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<!-- Needed to avoid conflict with OkHttp being used in auth0-java and okhttp3 being used by spring -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp-version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<version>${okhttp-version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
Expand Down

0 comments on commit 76f7a6f

Please sign in to comment.