Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 2 | |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 3 | <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"> |
Narayan Kamath | 967c738 | 2013-06-14 15:26:38 +0100 | [diff] [blame] | 4 | <modelVersion>4.0.0</modelVersion> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 5 | |
Narayan Kamath | 967c738 | 2013-06-14 15:26:38 +0100 | [diff] [blame] | 6 | <parent> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 7 | <groupId>org.sonatype.oss</groupId> |
| 8 | <artifactId>oss-parent</artifactId> |
| 9 | <version>7</version> |
Narayan Kamath | 967c738 | 2013-06-14 15:26:38 +0100 | [diff] [blame] | 10 | </parent> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 11 | |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 12 | <groupId>com.squareup.okhttp</groupId> |
| 13 | <artifactId>parent</artifactId> |
Neil Fuller | a2cab72 | 2015-04-13 13:06:22 +0100 | [diff] [blame] | 14 | <version>2.4.0-SNAPSHOT</version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 15 | <packaging>pom</packaging> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 16 | |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 17 | <name>OkHttp (Parent)</name> |
| 18 | <description>An HTTP+SPDY client for Android and Java applications</description> |
| 19 | <url>https://github.com/square/okhttp</url> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 20 | |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 21 | <modules> |
| 22 | <module>okhttp</module> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 23 | <module>okhttp-tests</module> |
Neil Fuller | a2cab72 | 2015-04-13 13:06:22 +0100 | [diff] [blame] | 24 | |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 25 | <module>okhttp-android-support</module> |
Neil Fuller | a2cab72 | 2015-04-13 13:06:22 +0100 | [diff] [blame] | 26 | |
| 27 | <module>okhttp-apache</module> |
Neil Fuller | 7aeaaef | 2015-05-07 13:14:41 +0100 | [diff] [blame] | 28 | <module>okhttp-testing-support</module> |
Neil Fuller | a2cab72 | 2015-04-13 13:06:22 +0100 | [diff] [blame] | 29 | <module>okhttp-urlconnection</module> |
| 30 | |
| 31 | <module>okhttp-ws</module> |
| 32 | <module>okhttp-ws-tests</module> |
| 33 | |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 34 | <module>okcurl</module> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 35 | <module>mockwebserver</module> |
| 36 | <module>samples</module> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 37 | <module>benchmarks</module> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 38 | </modules> |
| 39 | |
| 40 | <properties> |
| 41 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 42 | |
| 43 | <!-- Compilation --> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 44 | <java.version>1.7</java.version> |
Neil Fuller | 7aeaaef | 2015-05-07 13:14:41 +0100 | [diff] [blame] | 45 | <okio.version>1.4.0-SNAPSHOT</okio.version> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 46 | <!-- ALPN library targeted to Java 7 --> |
| 47 | <alpn.jdk7.version>7.1.2.v20141202</alpn.jdk7.version> |
| 48 | <!-- ALPN library targeted to Java 8 update 25. --> |
| 49 | <alpn.jdk8.version>8.1.2.v20141202</alpn.jdk8.version> |
| 50 | <bouncycastle.version>1.50</bouncycastle.version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 51 | <gson.version>2.2.3</gson.version> |
| 52 | <apache.http.version>4.2.2</apache.http.version> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 53 | <airlift.version>0.6</airlift.version> |
| 54 | <guava.version>16.0</guava.version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 55 | |
| 56 | <!-- Test Dependencies --> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 57 | <junit.version>4.11</junit.version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 58 | </properties> |
| 59 | |
| 60 | <scm> |
| 61 | <url>https://github.com/square/okhttp/</url> |
| 62 | <connection>scm:git:https://github.com/square/okhttp.git</connection> |
| 63 | <developerConnection>scm:git:git@github.com:square/okhttp.git</developerConnection> |
| 64 | <tag>HEAD</tag> |
| 65 | </scm> |
| 66 | |
| 67 | <issueManagement> |
| 68 | <system>GitHub Issues</system> |
| 69 | <url>https://github.com/square/okhttp/issues</url> |
| 70 | </issueManagement> |
| 71 | |
| 72 | <licenses> |
| 73 | <license> |
| 74 | <name>Apache 2.0</name> |
| 75 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 76 | </license> |
| 77 | </licenses> |
| 78 | |
| 79 | <dependencyManagement> |
| 80 | <dependencies> |
| 81 | <dependency> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 82 | <groupId>com.squareup.okio</groupId> |
| 83 | <artifactId>okio</artifactId> |
| 84 | <version>${okio.version}</version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>junit</groupId> |
| 88 | <artifactId>junit</artifactId> |
| 89 | <version>${junit.version}</version> |
| 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>org.bouncycastle</groupId> |
| 93 | <artifactId>bcprov-jdk15on</artifactId> |
| 94 | <version>${bouncycastle.version}</version> |
| 95 | </dependency> |
| 96 | <dependency> |
| 97 | <groupId>com.google.code.gson</groupId> |
| 98 | <artifactId>gson</artifactId> |
| 99 | <version>${gson.version}</version> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.apache.httpcomponents</groupId> |
| 103 | <artifactId>httpclient</artifactId> |
| 104 | <version>${apache.http.version}</version> |
| 105 | </dependency> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 106 | <dependency> |
| 107 | <groupId>io.airlift</groupId> |
| 108 | <artifactId>airline</artifactId> |
| 109 | <version>${airlift.version}</version> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>com.google.guava</groupId> |
| 113 | <artifactId>guava</artifactId> |
| 114 | <version>${guava.version}</version> |
| 115 | </dependency> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 116 | </dependencies> |
| 117 | </dependencyManagement> |
| 118 | |
| 119 | <build> |
| 120 | <pluginManagement> |
| 121 | <plugins> |
| 122 | <plugin> |
| 123 | <groupId>org.apache.maven.plugins</groupId> |
| 124 | <artifactId>maven-compiler-plugin</artifactId> |
| 125 | <version>3.0</version> |
| 126 | <configuration> |
| 127 | <source>${java.version}</source> |
| 128 | <target>${java.version}</target> |
| 129 | </configuration> |
| 130 | </plugin> |
| 131 | |
| 132 | <plugin> |
| 133 | <groupId>org.apache.maven.plugins</groupId> |
| 134 | <artifactId>maven-surefire-plugin</artifactId> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 135 | <version>2.17</version> |
Neil Fuller | 7aeaaef | 2015-05-07 13:14:41 +0100 | [diff] [blame] | 136 | <configuration> |
| 137 | <properties> |
| 138 | <!-- |
| 139 | Configure a listener for enforcing that no uncaught exceptions issue from OkHttp |
| 140 | tests. Every test must have a <scope>test</scope> dependency on |
| 141 | okhttp-testing-support. |
| 142 | --> |
| 143 | <property> |
| 144 | <name>listener</name> |
| 145 | <value>com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener</value> |
| 146 | </property> |
| 147 | </properties> |
| 148 | </configuration> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 149 | <dependencies> |
| 150 | <dependency> |
| 151 | <groupId>org.apache.maven.surefire</groupId> |
| 152 | <artifactId>surefire-junit47</artifactId> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 153 | <version>2.17</version> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 154 | </dependency> |
| 155 | </dependencies> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 156 | </plugin> |
| 157 | |
| 158 | <plugin> |
| 159 | <groupId>org.apache.maven.plugins</groupId> |
| 160 | <artifactId>maven-javadoc-plugin</artifactId> |
| 161 | <version>2.9</version> |
| 162 | </plugin> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 163 | </plugins> |
| 164 | </pluginManagement> |
| 165 | |
| 166 | <plugins> |
| 167 | <plugin> |
| 168 | <groupId>org.apache.maven.plugins</groupId> |
Neil Fuller | c6bd683 | 2014-03-14 16:02:10 +0000 | [diff] [blame] | 169 | <artifactId>maven-release-plugin</artifactId> |
| 170 | <version>2.4.2</version> |
| 171 | <dependencies> |
| 172 | <dependency> |
| 173 | <groupId>org.apache.maven.scm</groupId> |
| 174 | <artifactId>maven-scm-provider-gitexe</artifactId> |
| 175 | <version>1.9</version> |
| 176 | </dependency> |
| 177 | </dependencies> |
| 178 | <configuration> |
| 179 | <autoVersionSubmodules>true</autoVersionSubmodules> |
| 180 | </configuration> |
| 181 | </plugin> |
| 182 | |
| 183 | <plugin> |
| 184 | <groupId>org.apache.maven.plugins</groupId> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 185 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 186 | <version>2.10</version> |
| 187 | <configuration> |
| 188 | <failsOnError>true</failsOnError> |
| 189 | <configLocation>checkstyle.xml</configLocation> |
| 190 | <consoleOutput>true</consoleOutput> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 191 | <excludes>**/CipherSuite.java</excludes> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 192 | </configuration> |
| 193 | <executions> |
| 194 | <execution> |
| 195 | <phase>verify</phase> |
| 196 | <goals> |
| 197 | <goal>checkstyle</goal> |
| 198 | </goals> |
| 199 | </execution> |
| 200 | </executions> |
| 201 | </plugin> |
| 202 | <plugin> |
| 203 | <groupId>org.codehaus.mojo</groupId> |
| 204 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 205 | <version>1.11</version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 206 | <executions> |
| 207 | <execution> |
| 208 | <phase>test</phase> |
| 209 | <goals> |
| 210 | <goal>check</goal> |
| 211 | </goals> |
| 212 | </execution> |
| 213 | </executions> |
| 214 | <configuration> |
| 215 | <signature> |
| 216 | <groupId>org.codehaus.mojo.signature</groupId> |
Neil Fuller | 3c938a3 | 2014-02-19 09:40:26 +0000 | [diff] [blame] | 217 | <artifactId>java16</artifactId> |
| 218 | <version>1.1</version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 219 | </signature> |
| 220 | </configuration> |
| 221 | </plugin> |
| 222 | </plugins> |
| 223 | </build> |
Neil Fuller | e78f117 | 2015-01-20 09:39:41 +0000 | [diff] [blame] | 224 | |
| 225 | <profiles> |
| 226 | <profile> |
| 227 | <id>alpn-when-jdk7</id> |
| 228 | <activation> |
| 229 | <jdk>1.7</jdk> |
| 230 | </activation> |
| 231 | <properties> |
| 232 | <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk7.version}/alpn-boot-${alpn.jdk7.version}.jar</bootclasspathPrefix> |
| 233 | </properties> |
| 234 | <build> |
| 235 | <pluginManagement> |
| 236 | <plugins> |
| 237 | <plugin> |
| 238 | <groupId>org.apache.maven.plugins</groupId> |
| 239 | <artifactId>maven-surefire-plugin</artifactId> |
| 240 | <configuration> |
| 241 | <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine> |
| 242 | </configuration> |
| 243 | <dependencies> |
| 244 | <dependency> |
| 245 | <groupId>org.mortbay.jetty.alpn</groupId> |
| 246 | <artifactId>alpn-boot</artifactId> |
| 247 | <version>${alpn.jdk7.version}</version> |
| 248 | </dependency> |
| 249 | </dependencies> |
| 250 | </plugin> |
| 251 | </plugins> |
| 252 | </pluginManagement> |
| 253 | </build> |
| 254 | </profile> |
| 255 | <profile> |
| 256 | <id>alpn-when-jdk8</id> |
| 257 | <activation> |
| 258 | <jdk>1.8</jdk> |
| 259 | </activation> |
| 260 | <properties> |
| 261 | <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk8.version}/alpn-boot-${alpn.jdk8.version}.jar</bootclasspathPrefix> |
| 262 | </properties> |
| 263 | <build> |
| 264 | <pluginManagement> |
| 265 | <plugins> |
| 266 | <plugin> |
| 267 | <groupId>org.apache.maven.plugins</groupId> |
| 268 | <artifactId>maven-surefire-plugin</artifactId> |
| 269 | <configuration> |
| 270 | <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine> |
| 271 | </configuration> |
| 272 | <dependencies> |
| 273 | <dependency> |
| 274 | <groupId>org.mortbay.jetty.alpn</groupId> |
| 275 | <artifactId>alpn-boot</artifactId> |
| 276 | <version>${alpn.jdk8.version}</version> |
| 277 | </dependency> |
| 278 | </dependencies> |
| 279 | </plugin> |
| 280 | </plugins> |
| 281 | </pluginManagement> |
| 282 | </build> |
| 283 | </profile> |
| 284 | </profiles> |
Narayan Kamath | c3f6f16 | 2012-08-09 11:57:05 +0100 | [diff] [blame] | 285 | </project> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 286 | |