1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-12 10:23:16 +03:00

Add instructions for Gradle to the README.

This commit is contained in:
Jake Wharton
2014-10-08 11:46:22 -07:00
parent 837dfc60bd
commit e69e436900

View File

@@ -7,14 +7,17 @@ Download
--------
Download [the latest JAR][3] or grab via Maven:
```xml
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>(insert latest version)</version>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.0.0</version>
</dependency>
```
or Gradle:
```groovy
compile 'com.squareup.okhttp:okhttp:2.0.0'
```
MockWebServer
@@ -27,15 +30,19 @@ MockWebServer coupling with OkHttp is essential for proper testing of SPDY and H
### Download
Download [the latest JAR][4] or grab via Maven:
```xml
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>mockwebserver</artifactId>
<version>(insert latest version)</version>
<scope>test</scope>
<groupId>com.squareup.okhttp</groupId>
<artifactId>mockwebserver</artifactId>
<version>2.0.0</version>
<scope>test</scope>
</dependency>
```
or Gradle:
```groovy
testCompile 'com.squareup.okhttp:mockwebserver:2.0.0'
```
License