pom.xml 10.6 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.6.3</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>
49
    <kotlin.version>1.3.10</kotlin.version>
J
Jake Wharton 已提交
50 51

    <!-- Dependencies -->
52
    <android.version>4.1.1.4</android.version>
J
Jake Wharton 已提交
53
    <okhttp.version>3.12.0</okhttp.version>
54
    <kotlinx.coroutines.version>1.1.0</kotlinx.coroutines.version>
55
    <animal.sniffer.version>1.14</animal.sniffer.version>
J
Jake Wharton 已提交
56 57

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

    <!-- Converter Dependencies -->
O
OH JAE HWAN 已提交
64
    <gson.version>2.8.5</gson.version>
C
Christopher Cizek 已提交
65
    <protobuf.version>3.5.0</protobuf.version>
66
    <jackson.version>2.9.8</jackson.version>
67
    <wire.version>2.2.0</wire.version>
F
fabienric 已提交
68
    <simplexml.version>2.7.1</simplexml.version>
E
Eric Cochran 已提交
69
    <moshi.version>1.8.0</moshi.version>
70
    <jaxb.version>2.2.12</jaxb.version><!-- 2.3.0 breaks due to https://github.com/mojohaus/animal-sniffer/issues/29 -->
J
Jake Wharton 已提交
71

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

J
Jake Wharton 已提交
75
    <!-- Test Dependencies -->
J
Jake Wharton 已提交
76
    <junit.version>4.12</junit.version>
J
Jake Wharton 已提交
77
    <assertj.version>1.7.0</assertj.version>
J
Jake Wharton 已提交
78
    <robolectric.version>3.8</robolectric.version>
J
Jake Wharton 已提交
79 80 81
  </properties>

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

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

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

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

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

  <build>
    <pluginManagement>
      <plugins>
218 219 220 221 222
        <plugin>
          <groupId>org.jetbrains.kotlin</groupId>
          <artifactId>kotlin-maven-plugin</artifactId>
          <version>${kotlin.version}</version>
        </plugin>
J
Jake Wharton 已提交
223 224 225
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
J
Jake Wharton 已提交
226
          <version>3.6.1</version>
J
Jake Wharton 已提交
227
          <configuration>
J
Jake Wharton 已提交
228 229
            <compilerId>javac-with-errorprone</compilerId>
            <forceJavacCompilerUse>true</forceJavacCompilerUse>
J
Jake Wharton 已提交
230 231 232
            <source>${java.version}</source>
            <target>${java.version}</target>
          </configuration>
J
Jake Wharton 已提交
233 234 235 236 237 238 239 240 241 242 243 244
          <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 已提交
245 246 247 248 249 250
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
251
        <groupId>org.apache.maven.plugins</groupId>
J
Jake Wharton 已提交
252
        <artifactId>maven-release-plugin</artifactId>
J
Jake Wharton 已提交
253 254 255 256 257 258 259 260
        <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 已提交
261 262 263 264
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
        </configuration>
      </plugin>
265 266 267 268

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
269 270 271 272 273
        <version>2.17</version>
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
J
jwilson 已提交
274
            <version>7.7</version>
275 276
          </dependency>
        </dependencies>
277 278 279 280 281 282 283 284 285 286 287 288 289 290
        <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>
291

292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
      <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>

307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
      <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 已提交
327 328
    </plugins>
  </build>
329
</project>