unable to resolve class okhttp3.OkHttpClient
I want to use okhttp library in process during "Connectors in" "Script->Groovy 2.4", unfortunately I have errors during execution like:
Script1.groovy: 1: unable to resolve class okhttp3.OkHttpClient @ line 1, column 1. import okhttp3.OkHttpClient
I tried different way and different versions of OkHttp jar files, but finally I failed...
Currently I used in "Development->Manage dependencies" following jar files:
Librarry stack is correct - I was able to do this task in separate project (in Eclipse) and it works correctly.
Code of script:
import okhttp3.OkHttpClient OkHttpClient okclient = new OkHttpClient(); return true;
Could you please support me in this issue?
I will buy a beer :)
Thanks in advance,
In order to add process dependencies you must add them to the process configurations (for a given environment).
By default, you are in the
Select the process containing your connector and open the configuration dialog (wrench icon). In the process dependencies you can add jar in the
Other category. Adding your 3 dependencies should do the trick.