pom.xml 10.2 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>
28
  <version>2.4.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>
33
  <url>https://github.com/square/retrofit/</url>
J
Jake Wharton 已提交
34 35

  <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>
E
Eric Cochran 已提交
52
    <okhttp.version>3.10.0</okhttp.version>
53
    <animal.sniffer.version>1.14</animal.sniffer.version>
J
Jake Wharton 已提交
54 55

    <!-- Adapter Dependencies -->
56
    <rxjava.version>1.3.0</rxjava.version>
J
Jake Wharton 已提交
57 58
    <rxjava2.version>2.0.0</rxjava2.version>
    <guava.version>19.0</guava.version>
R
Roman Parshikov 已提交
59
    <scala.version>2.12.4</scala.version>
60 61

    <!-- Converter Dependencies -->
W
Warren Smith 已提交
62
    <gson.version>2.8.2</gson.version>
J
Jake Wharton 已提交
63
    <protobuf.version>3.0.0</protobuf.version>
64
    <jackson.version>2.9.4</jackson.version>
65
    <wire.version>2.2.0</wire.version>
F
fabienric 已提交
66
    <simplexml.version>2.7.1</simplexml.version>
E
Eric Cochran 已提交
67
    <moshi.version>1.5.0</moshi.version>
68
    <jaxb.version>2.2.12</jaxb.version><!-- 2.3.0 breaks due to https://github.com/mojohaus/animal-sniffer/issues/29 -->
J
Jake Wharton 已提交
69

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

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

  <scm>
81
    <url>https://github.com/square/retrofit</url>
J
Jake Wharton 已提交
82 83
    <connection>scm:git:git://github.com/square/retrofit.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/square/retrofit.git</developerConnection>
84
    <tag>HEAD</tag>
J
Jake Wharton 已提交
85 86 87 88
  </scm>

  <issueManagement>
    <system>GitHub Issues</system>
89
    <url>https://github.com/square/retrofit/issues</url>
J
Jake Wharton 已提交
90 91 92 93 94
  </issueManagement>

  <licenses>
    <license>
      <name>Apache 2.0</name>
95
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
J
Jake Wharton 已提交
96 97 98 99 100
    </license>
  </licenses>

  <organization>
    <name>Square, Inc.</name>
101
    <url>https://squareup.com</url>
J
Jake Wharton 已提交
102 103 104 105 106 107 108 109 110
  </organization>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <version>${android.version}</version>
      </dependency>
111 112 113 114 115
      <dependency>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-annotations</artifactId>
        <version>${animal.sniffer.version}</version>
      </dependency>
116
      <dependency>
J
Jake Wharton 已提交
117
        <groupId>com.squareup.okhttp3</groupId>
118 119 120
        <artifactId>okhttp</artifactId>
        <version>${okhttp.version}</version>
      </dependency>
J
Jake Wharton 已提交
121 122 123 124 125
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
126
      <dependency>
127 128
        <groupId>io.reactivex</groupId>
        <artifactId>rxjava</artifactId>
129 130
        <version>${rxjava.version}</version>
      </dependency>
J
Jake Wharton 已提交
131 132 133 134 135
      <dependency>
        <groupId>io.reactivex.rxjava2</groupId>
        <artifactId>rxjava</artifactId>
        <version>${rxjava2.version}</version>
      </dependency>
136 137 138 139 140
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
K
Kai Waldron 已提交
141 142 143 144 145
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jackson.version}</version>
     </dependency>
146 147 148 149 150
      <dependency>
        <groupId>com.squareup.wire</groupId>
        <artifactId>wire-runtime</artifactId>
        <version>${wire.version}</version>
      </dependency>
F
fabienric 已提交
151 152 153 154 155
      <dependency>
        <groupId>org.simpleframework</groupId>
        <artifactId>simple-xml</artifactId>
        <version>${simplexml.version}</version>
      </dependency>
J
Jake Wharton 已提交
156 157 158 159 160
      <dependency>
        <groupId>com.squareup.moshi</groupId>
        <artifactId>moshi</artifactId>
        <version>${moshi.version}</version>
      </dependency>
161 162 163 164 165
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${jaxb.version}</version>
      </dependency>
J
Jake Wharton 已提交
166 167 168 169 170
      <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-library</artifactId>
        <version>${scala.version}</version>
      </dependency>
171 172 173 174 175
      <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>jsr305</artifactId>
        <version>3.0.2</version>
      </dependency>
J
Jake Wharton 已提交
176 177 178 179 180 181
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
A
Adrian Cole 已提交
182 183 184
        <groupId>org.assertj</groupId>
        <artifactId>assertj-core</artifactId>
        <version>${assertj.version}</version>
J
Jake Wharton 已提交
185
      </dependency>
186 187 188 189 190
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>${mockito.version}</version>
      </dependency>
191 192 193 194 195
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>
196
      <dependency>
J
Jake Wharton 已提交
197
        <groupId>com.squareup.okhttp3</groupId>
198 199 200
        <artifactId>mockwebserver</artifactId>
        <version>${okhttp.version}</version>
      </dependency>
201 202 203 204 205
      <dependency>
        <groupId>org.robolectric</groupId>
        <artifactId>robolectric</artifactId>
        <version>${robolectric.version}</version>
      </dependency>
J
Jake Wharton 已提交
206 207 208 209 210 211 212 213 214
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
J
Jake Wharton 已提交
215
          <version>3.6.1</version>
J
Jake Wharton 已提交
216
          <configuration>
J
Jake Wharton 已提交
217 218
            <compilerId>javac-with-errorprone</compilerId>
            <forceJavacCompilerUse>true</forceJavacCompilerUse>
J
Jake Wharton 已提交
219 220 221
            <source>${java.version}</source>
            <target>${java.version}</target>
          </configuration>
J
Jake Wharton 已提交
222 223 224 225 226 227 228 229 230 231 232 233
          <dependencies>
            <dependency>
              <groupId>org.codehaus.plexus</groupId>
              <artifactId>plexus-compiler-javac-errorprone</artifactId>
              <version>2.8.1</version>
            </dependency>
            <dependency>
              <groupId>com.google.errorprone</groupId>
              <artifactId>error_prone_core</artifactId>
              <version>2.0.16</version>
            </dependency>
          </dependencies>
J
Jake Wharton 已提交
234 235 236 237 238 239
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
240
        <groupId>org.apache.maven.plugins</groupId>
J
Jake Wharton 已提交
241
        <artifactId>maven-release-plugin</artifactId>
J
Jake Wharton 已提交
242 243 244 245 246 247 248 249
        <version>2.4.2</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.scm</groupId>
            <artifactId>maven-scm-provider-gitexe</artifactId>
            <version>1.9</version>
          </dependency>
        </dependencies>
J
Jake Wharton 已提交
250 251 252 253
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
        </configuration>
      </plugin>
254 255 256 257

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
258 259 260 261 262
        <version>2.17</version>
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
J
jwilson 已提交
263
            <version>7.7</version>
264 265
          </dependency>
        </dependencies>
266 267 268 269 270 271 272 273 274 275 276 277 278 279
        <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>
280

281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
      <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>

296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
      <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 已提交
316 317
    </plugins>
  </build>
318
</project>