I try to use okhttp3.logging to log my retrofit http request.
I add the dependency in the pom.xml:
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.12.1</version>
</dependency>
Unfortunately I have a problem during the import:
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
Here is the error when compiling:
ERROR] /Users/martin/dev/adm/usersync/usersync-connectors/usersync-connector-discourse/src/main/java/org/xwiki/contrib/usersync/discourse/internal/DiscourseUserSyncConnector.java:[84,48] package HttpLoggingInterceptor does not exist
What is going wrong?