blob: 60c4f01a2c29ee9ef485abb0c2b0f3a30ed776ea [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>
Neil Fullera2cab722015-04-13 13:06:22 +010014 <version>2.4.0-SNAPSHOT</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>
28 <module>okhttp-urlconnection</module>
29
30 <module>okhttp-ws</module>
31 <module>okhttp-ws-tests</module>
32
Neil Fuller3c938a32014-02-19 09:40:26 +000033 <module>okcurl</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000034 <module>mockwebserver</module>
35 <module>samples</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000036 <module>benchmarks</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000037 </modules>
38
39 <properties>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41
42 <!-- Compilation -->
Neil Fullere78f1172015-01-20 09:39:41 +000043 <java.version>1.7</java.version>
Neil Fullera2cab722015-04-13 13:06:22 +010044 <okio.version>1.3.0</okio.version>
Neil Fullere78f1172015-01-20 09:39:41 +000045 <!-- ALPN library targeted to Java 7 -->
46 <alpn.jdk7.version>7.1.2.v20141202</alpn.jdk7.version>
47 <!-- ALPN library targeted to Java 8 update 25. -->
48 <alpn.jdk8.version>8.1.2.v20141202</alpn.jdk8.version>
49 <bouncycastle.version>1.50</bouncycastle.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000050 <gson.version>2.2.3</gson.version>
51 <apache.http.version>4.2.2</apache.http.version>
Neil Fuller3c938a32014-02-19 09:40:26 +000052 <airlift.version>0.6</airlift.version>
53 <guava.version>16.0</guava.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000054
55 <!-- Test Dependencies -->
Neil Fuller3c938a32014-02-19 09:40:26 +000056 <junit.version>4.11</junit.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000057 </properties>
58
59 <scm>
60 <url>https://github.com/square/okhttp/</url>
61 <connection>scm:git:https://github.com/square/okhttp.git</connection>
62 <developerConnection>scm:git:git@github.com:square/okhttp.git</developerConnection>
63 <tag>HEAD</tag>
64 </scm>
65
66 <issueManagement>
67 <system>GitHub Issues</system>
68 <url>https://github.com/square/okhttp/issues</url>
69 </issueManagement>
70
71 <licenses>
72 <license>
73 <name>Apache 2.0</name>
74 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
75 </license>
76 </licenses>
77
78 <dependencyManagement>
79 <dependencies>
80 <dependency>
Neil Fullere78f1172015-01-20 09:39:41 +000081 <groupId>com.squareup.okio</groupId>
82 <artifactId>okio</artifactId>
83 <version>${okio.version}</version>
Narayan Kamath166772b2013-11-04 16:04:55 +000084 </dependency>
85 <dependency>
86 <groupId>junit</groupId>
87 <artifactId>junit</artifactId>
88 <version>${junit.version}</version>
89 </dependency>
90 <dependency>
91 <groupId>org.bouncycastle</groupId>
92 <artifactId>bcprov-jdk15on</artifactId>
93 <version>${bouncycastle.version}</version>
94 </dependency>
95 <dependency>
96 <groupId>com.google.code.gson</groupId>
97 <artifactId>gson</artifactId>
98 <version>${gson.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.apache.httpcomponents</groupId>
102 <artifactId>httpclient</artifactId>
103 <version>${apache.http.version}</version>
104 </dependency>
Neil Fuller3c938a32014-02-19 09:40:26 +0000105 <dependency>
106 <groupId>io.airlift</groupId>
107 <artifactId>airline</artifactId>
108 <version>${airlift.version}</version>
109 </dependency>
110 <dependency>
111 <groupId>com.google.guava</groupId>
112 <artifactId>guava</artifactId>
113 <version>${guava.version}</version>
114 </dependency>
Narayan Kamath166772b2013-11-04 16:04:55 +0000115 </dependencies>
116 </dependencyManagement>
117
118 <build>
119 <pluginManagement>
120 <plugins>
121 <plugin>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-compiler-plugin</artifactId>
124 <version>3.0</version>
125 <configuration>
126 <source>${java.version}</source>
127 <target>${java.version}</target>
128 </configuration>
129 </plugin>
130
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-surefire-plugin</artifactId>
Neil Fullere78f1172015-01-20 09:39:41 +0000134 <version>2.17</version>
Neil Fuller3c938a32014-02-19 09:40:26 +0000135 <dependencies>
136 <dependency>
137 <groupId>org.apache.maven.surefire</groupId>
138 <artifactId>surefire-junit47</artifactId>
Neil Fullere78f1172015-01-20 09:39:41 +0000139 <version>2.17</version>
Neil Fuller3c938a32014-02-19 09:40:26 +0000140 </dependency>
141 </dependencies>
Narayan Kamath166772b2013-11-04 16:04:55 +0000142 </plugin>
143
144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-javadoc-plugin</artifactId>
147 <version>2.9</version>
148 </plugin>
Narayan Kamath166772b2013-11-04 16:04:55 +0000149 </plugins>
150 </pluginManagement>
151
152 <plugins>
153 <plugin>
154 <groupId>org.apache.maven.plugins</groupId>
Neil Fullerc6bd6832014-03-14 16:02:10 +0000155 <artifactId>maven-release-plugin</artifactId>
156 <version>2.4.2</version>
157 <dependencies>
158 <dependency>
159 <groupId>org.apache.maven.scm</groupId>
160 <artifactId>maven-scm-provider-gitexe</artifactId>
161 <version>1.9</version>
162 </dependency>
163 </dependencies>
164 <configuration>
165 <autoVersionSubmodules>true</autoVersionSubmodules>
166 </configuration>
167 </plugin>
168
169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
Narayan Kamath166772b2013-11-04 16:04:55 +0000171 <artifactId>maven-checkstyle-plugin</artifactId>
172 <version>2.10</version>
173 <configuration>
174 <failsOnError>true</failsOnError>
175 <configLocation>checkstyle.xml</configLocation>
176 <consoleOutput>true</consoleOutput>
Neil Fullere78f1172015-01-20 09:39:41 +0000177 <excludes>**/CipherSuite.java</excludes>
Narayan Kamath166772b2013-11-04 16:04:55 +0000178 </configuration>
179 <executions>
180 <execution>
181 <phase>verify</phase>
182 <goals>
183 <goal>checkstyle</goal>
184 </goals>
185 </execution>
186 </executions>
187 </plugin>
188 <plugin>
189 <groupId>org.codehaus.mojo</groupId>
190 <artifactId>animal-sniffer-maven-plugin</artifactId>
Neil Fullere78f1172015-01-20 09:39:41 +0000191 <version>1.11</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000192 <executions>
193 <execution>
194 <phase>test</phase>
195 <goals>
196 <goal>check</goal>
197 </goals>
198 </execution>
199 </executions>
200 <configuration>
201 <signature>
202 <groupId>org.codehaus.mojo.signature</groupId>
Neil Fuller3c938a32014-02-19 09:40:26 +0000203 <artifactId>java16</artifactId>
204 <version>1.1</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000205 </signature>
206 </configuration>
207 </plugin>
208 </plugins>
209 </build>
Neil Fullere78f1172015-01-20 09:39:41 +0000210
211 <profiles>
212 <profile>
213 <id>alpn-when-jdk7</id>
214 <activation>
215 <jdk>1.7</jdk>
216 </activation>
217 <properties>
218 <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk7.version}/alpn-boot-${alpn.jdk7.version}.jar</bootclasspathPrefix>
219 </properties>
220 <build>
221 <pluginManagement>
222 <plugins>
223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-surefire-plugin</artifactId>
226 <configuration>
227 <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine>
228 </configuration>
229 <dependencies>
230 <dependency>
231 <groupId>org.mortbay.jetty.alpn</groupId>
232 <artifactId>alpn-boot</artifactId>
233 <version>${alpn.jdk7.version}</version>
234 </dependency>
235 </dependencies>
236 </plugin>
237 </plugins>
238 </pluginManagement>
239 </build>
240 </profile>
241 <profile>
242 <id>alpn-when-jdk8</id>
243 <activation>
244 <jdk>1.8</jdk>
245 </activation>
246 <properties>
247 <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk8.version}/alpn-boot-${alpn.jdk8.version}.jar</bootclasspathPrefix>
248 </properties>
249 <build>
250 <pluginManagement>
251 <plugins>
252 <plugin>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-surefire-plugin</artifactId>
255 <configuration>
256 <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine>
257 </configuration>
258 <dependencies>
259 <dependency>
260 <groupId>org.mortbay.jetty.alpn</groupId>
261 <artifactId>alpn-boot</artifactId>
262 <version>${alpn.jdk8.version}</version>
263 </dependency>
264 </dependencies>
265 </plugin>
266 </plugins>
267 </pluginManagement>
268 </build>
269 </profile>
270 </profiles>
Narayan Kamathc3f6f162012-08-09 11:57:05 +0100271</project>
Narayan Kamath166772b2013-11-04 16:04:55 +0000272