pom.xml 8.3 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.1.1-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>
A
Amin Cheloh 已提交
52
    <okhttp.version>3.4.1</okhttp.version>
53
    <animal.sniffer.version>1.14</animal.sniffer.version>
J
Jake Wharton 已提交
54 55

    <!-- Adapter Dependencies -->
56
    <rxjava.version>1.1.5</rxjava.version>
57 58

    <!-- Converter Dependencies -->
59
    <gson.version>2.7</gson.version>
J
Jake Wharton 已提交
60 61
    <protobuf.version>2.6.1</protobuf.version>
    <jackson.version>2.7.2</jackson.version>
62
    <wire.version>2.2.0</wire.version>
F
fabienric 已提交
63
    <simplexml.version>2.7.1</simplexml.version>
64
    <moshi.version>1.2.0</moshi.version>
J
Jake Wharton 已提交
65

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

J
Jake Wharton 已提交
69
    <!-- Test Dependencies -->
J
Jake Wharton 已提交
70
    <junit.version>4.12</junit.version>
J
Jake Wharton 已提交
71
    <assertj.version>1.7.0</assertj.version>
72
    <mockito.version>1.9.5</mockito.version>
J
Jake Wharton 已提交
73
    <guava.version>19.0</guava.version>
74
    <robolectric.version>3.0</robolectric.version>
J
Jake Wharton 已提交
75 76 77 78 79 80
  </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>
81
    <tag>HEAD</tag>
J
Jake Wharton 已提交
82 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
  </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>
108 109 110 111 112
      <dependency>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-annotations</artifactId>
        <version>${animal.sniffer.version}</version>
      </dependency>
113
      <dependency>
J
Jake Wharton 已提交
114
        <groupId>com.squareup.okhttp3</groupId>
115 116 117
        <artifactId>okhttp</artifactId>
        <version>${okhttp.version}</version>
      </dependency>
J
Jake Wharton 已提交
118 119 120 121 122
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
123
      <dependency>
124 125
        <groupId>io.reactivex</groupId>
        <artifactId>rxjava</artifactId>
126 127
        <version>${rxjava.version}</version>
      </dependency>
J
Jake Wharton 已提交
128

129 130 131 132 133
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
K
Kai Waldron 已提交
134 135 136 137 138
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jackson.version}</version>
     </dependency>
139 140 141 142 143
      <dependency>
        <groupId>com.squareup.wire</groupId>
        <artifactId>wire-runtime</artifactId>
        <version>${wire.version}</version>
      </dependency>
F
fabienric 已提交
144 145 146 147 148
      <dependency>
        <groupId>org.simpleframework</groupId>
        <artifactId>simple-xml</artifactId>
        <version>${simplexml.version}</version>
      </dependency>
J
Jake Wharton 已提交
149 150 151 152 153
      <dependency>
        <groupId>com.squareup.moshi</groupId>
        <artifactId>moshi</artifactId>
        <version>${moshi.version}</version>
      </dependency>
154

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

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
194
          <version>3.0</version>
J
Jake Wharton 已提交
195 196 197 198 199 200 201 202 203 204
          <configuration>
            <source>${java.version}</source>
            <target>${java.version}</target>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
205
        <groupId>org.apache.maven.plugins</groupId>
J
Jake Wharton 已提交
206
        <artifactId>maven-release-plugin</artifactId>
J
Jake Wharton 已提交
207
        <version>2.5</version>
J
Jake Wharton 已提交
208 209 210 211
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
        </configuration>
      </plugin>
212 213 214 215

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
216
        <version>2.15</version>
217 218 219 220 221 222 223 224 225 226 227 228 229 230
        <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>
231

232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
      <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>

247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
      <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 已提交
267 268
    </plugins>
  </build>
269
</project>