How to build OkHttp3 jar file from source code

Viewed 213

I want to build a jar file from OkHttp library source code to use a snapshot version in my android app. I can not figure out how.

Any help is welcome. Thanks.

1 Answers
git clone https://github.com/square/okhttp
cd okhttp
./gradlew jar
mkdir /tmp/okhttplibs
find . -name '*.jar' | xargs -I % cp % /tmp/okhttplibs 
Related