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