blob: 465418811f0f15d6ebd6c70f28a280d5af01d0dc [file] [log] [blame]
Narayan Kamathc3f6f162012-08-09 11:57:05 +01001<?xml version="1.0" encoding="UTF-8"?>
Narayan Kamathc3f6f162012-08-09 11:57:05 +01002
Narayan Kamathc3f6f162012-08-09 11:57:05 +01003<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 Kamath967c7382013-06-14 15:26:38 +01004 <modelVersion>4.0.0</modelVersion>
Narayan Kamathc3f6f162012-08-09 11:57:05 +01005
Narayan Kamath967c7382013-06-14 15:26:38 +01006 <parent>
Narayan Kamath166772b2013-11-04 16:04:55 +00007 <groupId>org.sonatype.oss</groupId>
8 <artifactId>oss-parent</artifactId>
9 <version>7</version>
Narayan Kamath967c7382013-06-14 15:26:38 +010010 </parent>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010011
Narayan Kamath166772b2013-11-04 16:04:55 +000012 <groupId>com.squareup.okhttp</groupId>
13 <artifactId>parent</artifactId>
Tobias Thierer6c251e22016-06-24 19:04:17 +010014 <version>2.7.5</version>
Narayan Kamath166772b2013-11-04 16:04:55 +000015 <packaging>pom</packaging>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010016
Narayan Kamath166772b2013-11-04 16:04:55 +000017 <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 Kamathc3f6f162012-08-09 11:57:05 +010020
Narayan Kamath166772b2013-11-04 16:04:55 +000021 <modules>
22 <module>okhttp</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000023 <module>okhttp-tests</module>
Neil Fullera2cab722015-04-13 13:06:22 +010024
Neil Fullere78f1172015-01-20 09:39:41 +000025 <module>okhttp-android-support</module>
Neil Fullera2cab722015-04-13 13:06:22 +010026
27 <module>okhttp-apache</module>
Neil Fuller7aeaaef2015-05-07 13:14:41 +010028 <module>okhttp-testing-support</module>
Neil Fullera2cab722015-04-13 13:06:22 +010029 <module>okhttp-urlconnection</module>
30
31 <module>okhttp-ws</module>
32 <module>okhttp-ws-tests</module>
33
Tobias Thierer6c251e22016-06-24 19:04:17 +010034 <module>okhttp-logging-interceptor</module>
35
Neil Fuller3c938a32014-02-19 09:40:26 +000036 <module>okcurl</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000037 <module>mockwebserver</module>
38 <module>samples</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000039 <module>benchmarks</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000040 </modules>
41
42 <properties>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44
45 <!-- Compilation -->
Neil Fullere78f1172015-01-20 09:39:41 +000046 <java.version>1.7</java.version>
Neil Fuller71b9f472015-09-16 17:39:32 +010047 <okio.version>1.6.0</okio.version>
Neil Fullere78f1172015-01-20 09:39:41 +000048 <!-- 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 Kamath166772b2013-11-04 16:04:55 +000053 <gson.version>2.2.3</gson.version>
54 <apache.http.version>4.2.2</apache.http.version>
Neil Fuller3c938a32014-02-19 09:40:26 +000055 <airlift.version>0.6</airlift.version>
56 <guava.version>16.0</guava.version>
Tobias Thierer6c251e22016-06-24 19:04:17 +010057 <android.version>4.1.1.4</android.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000058
59 <!-- Test Dependencies -->
Neil Fuller3c938a32014-02-19 09:40:26 +000060 <junit.version>4.11</junit.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000061 </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 Thierer6c251e22016-06-24 19:04:17 +010067 <tag>parent-2.7.5</tag>
Narayan Kamath166772b2013-11-04 16:04:55 +000068 </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 Fullere78f1172015-01-20 09:39:41 +000085 <groupId>com.squareup.okio</groupId>
86 <artifactId>okio</artifactId>
87 <version>${okio.version}</version>
Narayan Kamath166772b2013-11-04 16:04:55 +000088 </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 Fuller3c938a32014-02-19 09:40:26 +0000109 <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 Thierer6c251e22016-06-24 19:04:17 +0100119 <dependency>
120 <groupId>com.google.android</groupId>
121 <artifactId>android</artifactId>
122 <version>${android.version}</version>
123 </dependency>
Narayan Kamath166772b2013-11-04 16:04:55 +0000124 </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 Fullere78f1172015-01-20 09:39:41 +0000143 <version>2.17</version>
Neil Fuller7aeaaef2015-05-07 13:14:41 +0100144 <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 Fuller3c938a32014-02-19 09:40:26 +0000157 <dependencies>
158 <dependency>
159 <groupId>org.apache.maven.surefire</groupId>
160 <artifactId>surefire-junit47</artifactId>
Neil Fullere78f1172015-01-20 09:39:41 +0000161 <version>2.17</version>
Neil Fuller3c938a32014-02-19 09:40:26 +0000162 </dependency>
163 </dependencies>
Narayan Kamath166772b2013-11-04 16:04:55 +0000164 </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 Kamath166772b2013-11-04 16:04:55 +0000171 </plugins>
172 </pluginManagement>
173
174 <plugins>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
Neil Fullerc6bd6832014-03-14 16:02:10 +0000177 <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 Kamath166772b2013-11-04 16:04:55 +0000193 <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 Fullere78f1172015-01-20 09:39:41 +0000199 <excludes>**/CipherSuite.java</excludes>
Narayan Kamath166772b2013-11-04 16:04:55 +0000200 </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 Fullere78f1172015-01-20 09:39:41 +0000213 <version>1.11</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000214 <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 Fuller3c938a32014-02-19 09:40:26 +0000225 <artifactId>java16</artifactId>
226 <version>1.1</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000227 </signature>
228 </configuration>
229 </plugin>
230 </plugins>
231 </build>
Neil Fullere78f1172015-01-20 09:39:41 +0000232
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 Kamathc3f6f162012-08-09 11:57:05 +0100293</project>
Narayan Kamath166772b2013-11-04 16:04:55 +0000294