README.md 1.3 KB
Newer Older
J
Jake Wharton 已提交
1 2 3
Retrofit
========

4
Type-safe REST client for Android and Java by Square, Inc.
J
Jake Wharton 已提交
5

J
Jake Wharton 已提交
6
For more information please see [the website][1].
J
Jake Wharton 已提交
7 8


J
Jake Wharton 已提交
9 10
Download
--------
J
Jake Wharton 已提交
11

J
Jake Wharton 已提交
12 13 14
Download [the latest JAR][2] or grab via Maven:
```xml
<dependency>
J
Jake Wharton 已提交
15 16
  <groupId>com.squareup.retrofit</groupId>
  <artifactId>retrofit</artifactId>
J
Jake Wharton 已提交
17
  <version>1.9.0</version>
J
Jake Wharton 已提交
18
</dependency>
J
Jake Wharton 已提交
19
```
J
Jake Wharton 已提交
20 21
or Gradle:
```groovy
J
Jake Wharton 已提交
22
compile 'com.squareup.retrofit:retrofit:1.9.0'
J
Jake Wharton 已提交
23
```
24 25 26

Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].

J
Jake Wharton 已提交
27
Retrofit requires at minimum Java 6 or Android 2.3.
J
Jake Wharton 已提交
28 29


30

31 32 33
License
=======

J
Jake Wharton 已提交
34
    Copyright 2013 Square, Inc.
J
Jake Wharton 已提交
35

36 37 38
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
J
Jake Wharton 已提交
39

40
       http://www.apache.org/licenses/LICENSE-2.0
J
Jake Wharton 已提交
41

42 43 44 45 46
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
J
Jake Wharton 已提交
47 48 49


 [1]: http://square.github.io/retrofit/
50
 [2]: https://search.maven.org/remote_content?g=com.squareup.retrofit&a=retrofit&v=LATEST
51
 [snap]: https://oss.sonatype.org/content/repositories/snapshots/