pom.xml 8.7 KB
Newer Older
J
Jake Wharton 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (C) 2012 Square, Inc.

  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

       http://www.apache.org/licenses/LICENSE-2.0

  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.
-->
17
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
J
Jake Wharton 已提交
18 19 20 21 22 23 24 25
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

J
Jake Wharton 已提交
26
  <groupId>com.squareup.retrofit2</groupId>
27
  <artifactId>parent</artifactId>
J
Jake Wharton 已提交
28
  <version>2.2.0-SNAPSHOT</version>
J
Jake Wharton 已提交
29 30
  <packaging>pom</packaging>

31
  <name>Retrofit (Parent)</name>
J
Jake Wharton 已提交
32
  <description>Type-safe HTTP client for Android and Java by Square, Inc.</description>
J
Jake Wharton 已提交
33 34 35
  <url>http://github.com/square/retrofit/</url>

  <modules>
36
    <module>retrofit</module>
37
    <module>retrofit-adapters</module>
38
    <module>retrofit-converters</module>
39
    <module>retrofit-mock</module>
J
Jake Wharton 已提交
40
    <module>samples</module>
J
Jake Wharton 已提交
41 42 43 44 45 46 47
  </modules>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.sourceEncoding>UTF-8</project.reporting.sourceEncoding>

    <!-- Compilation -->
48
    <java.version>1.7</java.version>
J
Jake Wharton 已提交
49 50

    <!-- Dependencies -->
51
    <android.version>4.1.1.4</android.version>
J
Jake Wharton 已提交
52
    <okhttp.version>3.6.0</okhttp.version>
53
    <animal.sniffer.version>1.14</animal.sniffer.version>
J
Jake Wharton 已提交
54 55

    <!-- Adapter Dependencies -->
J
Jake Wharton 已提交
56
    <rxjava.version>1.2.0</rxjava.version>
J
Jake Wharton 已提交
57 58
    <rxjava2.version>2.0.0</rxjava2.version>
    <guava.version>19.0</guava.version>
59 60

    <!-- Converter Dependencies -->
61
    <gson.version>2.7</gson.version>
J
Jake Wharton 已提交
62
    <protobuf.version>3.0.0</protobuf.version>
J
Jake Wharton 已提交
63
    <jackson.version>2.7.2</jackson.version>
64
    <wire.version>2.2.0</wire.version>
F
fabienric 已提交
65
    <simplexml.version>2.7.1</simplexml.version>
S
Serj Lotutovici 已提交
66
    <moshi.version>1.3.0</moshi.version>
J
Jake Wharton 已提交
67

J
jwilson 已提交
68 69 70
    <!-- Sample Dependencies -->
    <jsoup.version>1.7.3</jsoup.version>

J
Jake Wharton 已提交
71
    <!-- Test Dependencies -->
J
Jake Wharton 已提交
72
    <junit.version>4.12</junit.version>
J
Jake Wharton 已提交
73
    <assertj.version>1.7.0</assertj.version>
74
    <mockito.version>1.9.5</mockito.version>
75
    <robolectric.version>3.0</robolectric.version>
J
Jake Wharton 已提交
76 77 78 79 80 81
  </properties>

  <scm>
    <url>http://github.com/square/retrofit</url>
    <connection>scm:git:git://github.com/square/retrofit.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/square/retrofit.git</developerConnection>
82
    <tag>HEAD</tag>
J
Jake Wharton 已提交
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
  </scm>

  <issueManagement>
    <system>GitHub Issues</system>
    <url>http://github.com/square/retrofit/issues</url>
  </issueManagement>

  <licenses>
    <license>
      <name>Apache 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <organization>
    <name>Square, Inc.</name>
    <url>http://squareup.com</url>
  </organization>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <version>${android.version}</version>
      </dependency>
109 110 111 112 113
      <dependency>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-annotations</artifactId>
        <version>${animal.sniffer.version}</version>
      </dependency>
114
      <dependency>
J
Jake Wharton 已提交
115
        <groupId>com.squareup.okhttp3</groupId>
116 117 118
        <artifactId>okhttp</artifactId>
        <version>${okhttp.version}</version>
      </dependency>
J
Jake Wharton 已提交
119 120 121 122 123
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
124
      <dependency>
125 126
        <groupId>io.reactivex</groupId>
        <artifactId>rxjava</artifactId>
127 128
        <version>${rxjava.version}</version>
      </dependency>
J
Jake Wharton 已提交
129 130 131 132 133
      <dependency>
        <groupId>io.reactivex.rxjava2</groupId>
        <artifactId>rxjava</artifactId>
        <version>${rxjava2.version}</version>
      </dependency>
134 135 136 137 138
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
K
Kai Waldron 已提交
139 140 141 142 143
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jackson.version}</version>
     </dependency>
144 145 146 147 148
      <dependency>
        <groupId>com.squareup.wire</groupId>
        <artifactId>wire-runtime</artifactId>
        <version>${wire.version}</version>
      </dependency>
F
fabienric 已提交
149 150 151 152 153
      <dependency>
        <groupId>org.simpleframework</groupId>
        <artifactId>simple-xml</artifactId>
        <version>${simplexml.version}</version>
      </dependency>
J
Jake Wharton 已提交
154 155 156 157 158
      <dependency>
        <groupId>com.squareup.moshi</groupId>
        <artifactId>moshi</artifactId>
        <version>${moshi.version}</version>
      </dependency>
159

J
Jake Wharton 已提交
160 161 162 163 164 165
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
A
Adrian Cole 已提交
166 167 168
        <groupId>org.assertj</groupId>
        <artifactId>assertj-core</artifactId>
        <version>${assertj.version}</version>
J
Jake Wharton 已提交
169
      </dependency>
170 171 172 173 174
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>${mockito.version}</version>
      </dependency>
175 176 177 178 179
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>
180
      <dependency>
J
Jake Wharton 已提交
181
        <groupId>com.squareup.okhttp3</groupId>
182 183 184
        <artifactId>mockwebserver</artifactId>
        <version>${okhttp.version}</version>
      </dependency>
185 186 187 188 189
      <dependency>
        <groupId>org.robolectric</groupId>
        <artifactId>robolectric</artifactId>
        <version>${robolectric.version}</version>
      </dependency>
J
Jake Wharton 已提交
190 191 192 193 194 195 196 197 198
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
199
          <version>3.0</version>
J
Jake Wharton 已提交
200 201 202 203 204 205 206 207 208 209
          <configuration>
            <source>${java.version}</source>
            <target>${java.version}</target>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
210
        <groupId>org.apache.maven.plugins</groupId>
J
Jake Wharton 已提交
211
        <artifactId>maven-release-plugin</artifactId>
J
Jake Wharton 已提交
212
        <version>2.5</version>
J
Jake Wharton 已提交
213 214 215 216
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
        </configuration>
      </plugin>
217 218 219 220

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
221 222 223 224 225 226 227 228
        <version>2.17</version>
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
            <version>7.3</version>
          </dependency>
        </dependencies>
229 230 231 232 233 234 235 236 237 238 239 240 241 242
        <configuration>
          <failsOnError>true</failsOnError>
          <configLocation>checkstyle.xml</configLocation>
          <consoleOutput>true</consoleOutput>
        </configuration>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>checkstyle</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
243

244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10.3</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-maven-plugin</artifactId>
        <version>${animal.sniffer.version}</version>
        <executions>
          <execution>
            <phase>test</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <signature>
            <groupId>org.codehaus.mojo.signature</groupId>
            <artifactId>java16</artifactId>
            <version>1.1</version>
          </signature>
        </configuration>
      </plugin>
J
Jake Wharton 已提交
279 280
    </plugins>
  </build>
281
</project>