| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2012 Square, Inc. |
| Copyright (C) 2012 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.sonatype.oss</groupId> |
| <artifactId>oss-parent</artifactId> |
| <version>7</version> |
| </parent> |
| <groupId>com.squareup</groupId> |
| <artifactId>okhttp</artifactId> |
| <version>0.8-SNAPSHOT</version> |
| <packaging>jar</packaging> |
| |
| <name>okhttp</name> |
| <description>An HTTP+SPDY client for Android and Java applications</description> |
| <url>https://github.com/square/okhttp</url> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <!-- Compilation --> |
| <java.version>1.6</java.version> |
| <npn.version>8.1.2.v20120308</npn.version> |
| <mockwebserver.version>20120731</mockwebserver.version> |
| <bouncycastle.version>1.47</bouncycastle.version> |
| |
| <!-- Test Dependencies --> |
| <junit.version>3.8.2</junit.version> |
| </properties> |
| |
| <scm> |
| <url>https://github.com/square/okhttp/</url> |
| <connection>scm:git:https://github.com/square/okhttp.git</connection> |
| <developerConnection>scm:git:git@github.com:square/okhttp.git</developerConnection> |
| </scm> |
| |
| <issueManagement> |
| <system>GitHub Issues</system> |
| <url>https://github.com/square/okhttp/issues</url> |
| </issueManagement> |
| |
| <licenses> |
| <license> |
| <name>Apache 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| </license> |
| </licenses> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.mortbay.jetty.npn</groupId> |
| <artifactId>npn-boot</artifactId> |
| <version>${npn.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.mockwebserver</groupId> |
| <artifactId>mockwebserver</artifactId> |
| <version>${mockwebserver.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-jdk15on</artifactId> |
| <version>${bouncycastle.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>2.5</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.sonatype.plugins</groupId> |
| <artifactId>jarjar-maven-plugin</artifactId> |
| <version>1.5</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jarjar</goal> |
| </goals> |
| <configuration> |
| <includes> |
| <include>asm:asm</include> |
| <include>org.sonatype.sisu.inject:cglib</include> |
| </includes> |
| <rules> |
| <rule> |
| <pattern>libcore.**</pattern> |
| <result>com.squareup.okhttp.libcore.@1</result> |
| </rule> |
| </rules> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.9</version> |
| <configuration> |
| <argLine>-Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/npn/npn-boot/${npn.version}/npn-boot-${npn.version}.jar</argLine> |
| </configuration> |
| </plugin> |
| <plugin> |
| <!-- |
| OkHttp requires with javac >= 1.7 for syncFlush on DeflaterOutputStream. |
| Its language version must be <= 1.6 for dx. |
| |
| Running this code on Java 6 or earlier will fail at runtime due to the missing |
| syncFlush API. |
| |
| Dalvik's core library includes syncFlush, but with an @hide tag so that it doesn't |
| show up in the documentation or the android.jar stubs. This code works fine on |
| Dalvik. |
| --> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <id>enforce-java</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <configuration> |
| <rules> |
| <requireJavaVersion> |
| <version>[1.7.0,)</version> |
| </requireJavaVersion> |
| </rules> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>2.9.1</version> |
| <configuration> |
| <failsOnError>true</failsOnError> |
| <configLocation>checkstyle.xml</configLocation> |
| <excludes>**/OsConstants.java</excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>checkstyle</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |
| |