1 <?xml version="1.0" encoding="UTF-8"?> 2 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"> 4 <modelVersion>4.0.0</modelVersion> 5 6 <parent> 7 <groupId>org.sonatype.oss</groupId> 8 <artifactId>oss-parent</artifactId> 9 <version>7</version> 10 </parent> 11 12 <groupId>com.squareup.okhttp</groupId> 13 <artifactId>parent</artifactId> 14 <version>2.0.0-SNAPSHOT</version> 15 <packaging>pom</packaging> 16 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> 20 21 <modules> 22 <module>okhttp</module> 23 <module>okhttp-apache</module> 24 <module>okhttp-tests</module> 25 <module>okcurl</module> 26 <module>okio</module> 27 <module>mockwebserver</module> 28 <module>samples</module> 29 <module>benchmarks</module> 30 </modules> 31 32 <properties> 33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 34 35 <!-- Compilation --> 36 <java.version>1.6</java.version> 37 <npn.version>8.1.2.v20120308</npn.version> 38 <bouncycastle.version>1.48</bouncycastle.version> 39 <gson.version>2.2.3</gson.version> 40 <apache.http.version>4.2.2</apache.http.version> 41 <airlift.version>0.6</airlift.version> 42 <guava.version>16.0</guava.version> 43 44 <!-- Test Dependencies --> 45 <junit.version>4.11</junit.version> 46 </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 (a] github.com:square/okhttp.git</developerConnection> 52 <tag>HEAD</tag> 53 </scm> 54 55 <issueManagement> 56 <system>GitHub Issues</system> 57 <url>https://github.com/square/okhttp/issues</url> 58 </issueManagement> 59 60 <licenses> 61 <license> 62 <name>Apache 2.0</name> 63 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 64 </license> 65 </licenses> 66 67 <dependencyManagement> 68 <dependencies> 69 <dependency> 70 <groupId>org.mortbay.jetty.npn</groupId> 71 <artifactId>npn-boot</artifactId> 72 <version>${npn.version}</version> 73 </dependency> 74 <dependency> 75 <groupId>junit</groupId> 76 <artifactId>junit</artifactId> 77 <version>${junit.version}</version> 78 </dependency> 79 <dependency> 80 <groupId>org.bouncycastle</groupId> 81 <artifactId>bcprov-jdk15on</artifactId> 82 <version>${bouncycastle.version}</version> 83 </dependency> 84 <dependency> 85 <groupId>com.google.code.gson</groupId> 86 <artifactId>gson</artifactId> 87 <version>${gson.version}</version> 88 </dependency> 89 <dependency> 90 <groupId>org.apache.httpcomponents</groupId> 91 <artifactId>httpclient</artifactId> 92 <version>${apache.http.version}</version> 93 </dependency> 94 <dependency> 95 <groupId>io.airlift</groupId> 96 <artifactId>airline</artifactId> 97 <version>${airlift.version}</version> 98 </dependency> 99 <dependency> 100 <groupId>com.google.guava</groupId> 101 <artifactId>guava</artifactId> 102 <version>${guava.version}</version> 103 </dependency> 104 </dependencies> 105 </dependencyManagement> 106 107 <build> 108 <pluginManagement> 109 <plugins> 110 <plugin> 111 <groupId>org.apache.maven.plugins</groupId> 112 <artifactId>maven-compiler-plugin</artifactId> 113 <version>3.0</version> 114 <configuration> 115 <source>${java.version}</source> 116 <target>${java.version}</target> 117 </configuration> 118 </plugin> 119 120 <plugin> 121 <groupId>org.apache.maven.plugins</groupId> 122 <artifactId>maven-surefire-plugin</artifactId> 123 <version>2.16</version> 124 <configuration> 125 <argLine>-Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/npn/npn-boot/${npn.version}/npn-boot-${npn.version}.jar</argLine> 126 </configuration> 127 <dependencies> 128 <dependency> 129 <groupId>org.apache.maven.surefire</groupId> 130 <artifactId>surefire-junit47</artifactId> 131 <version>2.16</version> 132 </dependency> 133 </dependencies> 134 </plugin> 135 136 <plugin> 137 <groupId>org.apache.maven.plugins</groupId> 138 <artifactId>maven-javadoc-plugin</artifactId> 139 <version>2.9</version> 140 </plugin> 141 </plugins> 142 </pluginManagement> 143 144 <plugins> 145 <plugin> 146 <groupId>org.apache.maven.plugins</groupId> 147 <artifactId>maven-release-plugin</artifactId> 148 <version>2.4.2</version> 149 <dependencies> 150 <dependency> 151 <groupId>org.apache.maven.scm</groupId> 152 <artifactId>maven-scm-provider-gitexe</artifactId> 153 <version>1.9</version> 154 </dependency> 155 </dependencies> 156 <configuration> 157 <autoVersionSubmodules>true</autoVersionSubmodules> 158 </configuration> 159 </plugin> 160 161 <plugin> 162 <groupId>org.apache.maven.plugins</groupId> 163 <artifactId>maven-checkstyle-plugin</artifactId> 164 <version>2.10</version> 165 <configuration> 166 <failsOnError>true</failsOnError> 167 <configLocation>checkstyle.xml</configLocation> 168 <consoleOutput>true</consoleOutput> 169 </configuration> 170 <executions> 171 <execution> 172 <phase>verify</phase> 173 <goals> 174 <goal>checkstyle</goal> 175 </goals> 176 </execution> 177 </executions> 178 </plugin> 179 <plugin> 180 <groupId>org.codehaus.mojo</groupId> 181 <artifactId>animal-sniffer-maven-plugin</artifactId> 182 <version>1.10</version> 183 <executions> 184 <execution> 185 <phase>test</phase> 186 <goals> 187 <goal>check</goal> 188 </goals> 189 </execution> 190 </executions> 191 <configuration> 192 <signature> 193 <groupId>org.codehaus.mojo.signature</groupId> 194 <artifactId>java16</artifactId> 195 <version>1.1</version> 196 </signature> 197 </configuration> 198 </plugin> 199 </plugins> 200 </build> 201 </project> 202 203