blob: 0afcaa61e7d3f10100fa96d7caf15b5710aadf57 [file] [log] [blame]
Narayan Kamathc3f6f162012-08-09 11:57:05 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (C) 2012 Square, Inc.
4 Copyright (C) 2012 The Android Open Source Project
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
18<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">
19 <modelVersion>4.0.0</modelVersion>
20
21 <parent>
22 <groupId>org.sonatype.oss</groupId>
23 <artifactId>oss-parent</artifactId>
24 <version>7</version>
25 </parent>
26 <groupId>com.squareup</groupId>
27 <artifactId>okhttp</artifactId>
jwilson54cf3442013-01-17 18:24:35 -050028 <version>0.9-SNAPSHOT</version>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010029 <packaging>jar</packaging>
30
31 <name>okhttp</name>
32 <description>An HTTP+SPDY client for Android and Java applications</description>
33 <url>https://github.com/square/okhttp</url>
34
35 <properties>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37
38 <!-- Compilation -->
39 <java.version>1.6</java.version>
40 <npn.version>8.1.2.v20120308</npn.version>
jwilson54cf3442013-01-17 18:24:35 -050041 <mockwebserver.version>20130122</mockwebserver.version>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010042 <bouncycastle.version>1.47</bouncycastle.version>
43
44 <!-- Test Dependencies -->
jwilson54cf3442013-01-17 18:24:35 -050045 <junit.version>4.10</junit.version>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010046 </properties>
47
48 <scm>
49 <url>https://github.com/square/okhttp/</url>
50 <connection>scm:git:https://github.com/square/okhttp.git</connection>
51 <developerConnection>scm:git:git@github.com:square/okhttp.git</developerConnection>
52 </scm>
53
54 <issueManagement>
55 <system>GitHub Issues</system>
56 <url>https://github.com/square/okhttp/issues</url>
57 </issueManagement>
58
59 <licenses>
60 <license>
61 <name>Apache 2.0</name>
62 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
63 </license>
64 </licenses>
65
66 <dependencies>
67 <dependency>
68 <groupId>org.mortbay.jetty.npn</groupId>
69 <artifactId>npn-boot</artifactId>
70 <version>${npn.version}</version>
jwilson54cf3442013-01-17 18:24:35 -050071 <optional>true</optional>
Narayan Kamathc3f6f162012-08-09 11:57:05 +010072 </dependency>
73 <dependency>
74 <groupId>com.google.mockwebserver</groupId>
75 <artifactId>mockwebserver</artifactId>
76 <version>${mockwebserver.version}</version>
77 <scope>test</scope>
78 </dependency>
79 <dependency>
80 <groupId>junit</groupId>
81 <artifactId>junit</artifactId>
82 <version>${junit.version}</version>
83 <scope>test</scope>
84 </dependency>
85 <dependency>
86 <groupId>org.bouncycastle</groupId>
87 <artifactId>bcprov-jdk15on</artifactId>
88 <version>${bouncycastle.version}</version>
89 <scope>test</scope>
90 </dependency>
91 </dependencies>
92
93 <build>
94 <plugins>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
98 <version>2.5</version>
99 <configuration>
100 <source>${java.version}</source>
101 <target>${java.version}</target>
102 </configuration>
103 </plugin>
104 <plugin>
Narayan Kamathc3f6f162012-08-09 11:57:05 +0100105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-checkstyle-plugin</artifactId>
107 <version>2.9.1</version>
108 <configuration>
109 <failsOnError>true</failsOnError>
110 <configLocation>checkstyle.xml</configLocation>
Narayan Kamath7899c5a2012-11-09 11:04:50 +0000111 <consoleOutput>true</consoleOutput>
Narayan Kamathc3f6f162012-08-09 11:57:05 +0100112 <excludes>**/OsConstants.java</excludes>
113 </configuration>
114 <executions>
115 <execution>
116 <phase>verify</phase>
117 <goals>
118 <goal>checkstyle</goal>
119 </goals>
120 </execution>
121 </executions>
122 </plugin>
jwilson54cf3442013-01-17 18:24:35 -0500123 <plugin>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-surefire-plugin</artifactId>
126 <version>2.9</version>
127 <configuration>
128 <argLine>-Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/npn/npn-boot/${npn.version}/npn-boot-${npn.version}.jar</argLine>
129 </configuration>
130 </plugin>
Narayan Kamathc3f6f162012-08-09 11:57:05 +0100131 </plugins>
132 </build>
133</project>
134