blob: 884718b481a1404ad9d54ca26c5bf7eea210d155 [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 Fullere78f1172015-01-20 09:39:41 +000014 <version>2.3.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>
23 <module>okhttp-apache</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000024 <module>okhttp-tests</module>
Neil Fullere78f1172015-01-20 09:39:41 +000025 <module>okhttp-urlconnection</module>
26 <module>okhttp-android-support</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000027 <module>okcurl</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000028 <module>mockwebserver</module>
29 <module>samples</module>
Neil Fuller3c938a32014-02-19 09:40:26 +000030 <module>benchmarks</module>
Narayan Kamath166772b2013-11-04 16:04:55 +000031 </modules>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35
36 <!-- Compilation -->
Neil Fullere78f1172015-01-20 09:39:41 +000037 <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 Kamath166772b2013-11-04 16:04:55 +000044 <gson.version>2.2.3</gson.version>
45 <apache.http.version>4.2.2</apache.http.version>
Neil Fuller3c938a32014-02-19 09:40:26 +000046 <airlift.version>0.6</airlift.version>
47 <guava.version>16.0</guava.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000048
49 <!-- Test Dependencies -->
Neil Fuller3c938a32014-02-19 09:40:26 +000050 <junit.version>4.11</junit.version>
Narayan Kamath166772b2013-11-04 16:04:55 +000051 </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 Fullere78f1172015-01-20 09:39:41 +000075 <groupId>com.squareup.okio</groupId>
76 <artifactId>okio</artifactId>
77 <version>${okio.version}</version>
Narayan Kamath166772b2013-11-04 16:04:55 +000078 </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 Fuller3c938a32014-02-19 09:40:26 +000099 <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 Kamath166772b2013-11-04 16:04:55 +0000109 </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 Fullere78f1172015-01-20 09:39:41 +0000128 <version>2.17</version>
Neil Fuller3c938a32014-02-19 09:40:26 +0000129 <dependencies>
130 <dependency>
131 <groupId>org.apache.maven.surefire</groupId>
132 <artifactId>surefire-junit47</artifactId>
Neil Fullere78f1172015-01-20 09:39:41 +0000133 <version>2.17</version>
Neil Fuller3c938a32014-02-19 09:40:26 +0000134 </dependency>
135 </dependencies>
Narayan Kamath166772b2013-11-04 16:04:55 +0000136 </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 Kamath166772b2013-11-04 16:04:55 +0000143 </plugins>
144 </pluginManagement>
145
146 <plugins>
147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
Neil Fullerc6bd6832014-03-14 16:02:10 +0000149 <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 Kamath166772b2013-11-04 16:04:55 +0000165 <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 Fullere78f1172015-01-20 09:39:41 +0000171 <excludes>**/CipherSuite.java</excludes>
Narayan Kamath166772b2013-11-04 16:04:55 +0000172 </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 Fullere78f1172015-01-20 09:39:41 +0000185 <version>1.11</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000186 <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 Fuller3c938a32014-02-19 09:40:26 +0000197 <artifactId>java16</artifactId>
198 <version>1.1</version>
Narayan Kamath166772b2013-11-04 16:04:55 +0000199 </signature>
200 </configuration>
201 </plugin>
202 </plugins>
203 </build>
Neil Fullere78f1172015-01-20 09:39:41 +0000204
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 Kamathc3f6f162012-08-09 11:57:05 +0100265</project>
Narayan Kamath166772b2013-11-04 16:04:55 +0000266