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