Home | History | Annotate | Download | only in okhttp
      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.7.5</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-tests</module>
     24 
     25     <module>okhttp-android-support</module>
     26 
     27     <module>okhttp-apache</module>
     28     <module>okhttp-testing-support</module>
     29     <module>okhttp-urlconnection</module>
     30 
     31     <module>okhttp-ws</module>
     32     <module>okhttp-ws-tests</module>
     33 
     34     <module>okhttp-logging-interceptor</module>
     35 
     36     <module>okcurl</module>
     37     <module>mockwebserver</module>
     38     <module>samples</module>
     39     <module>benchmarks</module>
     40   </modules>
     41 
     42   <properties>
     43     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     44 
     45     <!-- Compilation -->
     46     <java.version>1.7</java.version>
     47     <okio.version>1.6.0</okio.version>
     48     <!-- ALPN library targeted to Java 7 -->
     49     <alpn.jdk7.version>7.1.2.v20141202</alpn.jdk7.version>
     50     <!-- ALPN library targeted to Java 8 update 25. -->
     51     <alpn.jdk8.version>8.1.2.v20141202</alpn.jdk8.version>
     52     <bouncycastle.version>1.50</bouncycastle.version>
     53     <gson.version>2.2.3</gson.version>
     54     <apache.http.version>4.2.2</apache.http.version>
     55     <airlift.version>0.6</airlift.version>
     56     <guava.version>16.0</guava.version>
     57     <android.version>4.1.1.4</android.version>
     58 
     59     <!-- Test Dependencies -->
     60     <junit.version>4.11</junit.version>
     61   </properties>
     62 
     63   <scm>
     64     <url>https://github.com/square/okhttp/</url>
     65     <connection>scm:git:https://github.com/square/okhttp.git</connection>
     66     <developerConnection>scm:git:git (a] github.com:square/okhttp.git</developerConnection>
     67     <tag>parent-2.7.5</tag>
     68   </scm>
     69 
     70   <issueManagement>
     71     <system>GitHub Issues</system>
     72     <url>https://github.com/square/okhttp/issues</url>
     73   </issueManagement>
     74 
     75   <licenses>
     76     <license>
     77       <name>Apache 2.0</name>
     78       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     79     </license>
     80   </licenses>
     81 
     82   <dependencyManagement>
     83     <dependencies>
     84       <dependency>
     85         <groupId>com.squareup.okio</groupId>
     86         <artifactId>okio</artifactId>
     87         <version>${okio.version}</version>
     88       </dependency>
     89       <dependency>
     90         <groupId>junit</groupId>
     91         <artifactId>junit</artifactId>
     92         <version>${junit.version}</version>
     93       </dependency>
     94       <dependency>
     95         <groupId>org.bouncycastle</groupId>
     96         <artifactId>bcprov-jdk15on</artifactId>
     97         <version>${bouncycastle.version}</version>
     98       </dependency>
     99       <dependency>
    100         <groupId>com.google.code.gson</groupId>
    101         <artifactId>gson</artifactId>
    102         <version>${gson.version}</version>
    103       </dependency>
    104       <dependency>
    105         <groupId>org.apache.httpcomponents</groupId>
    106         <artifactId>httpclient</artifactId>
    107         <version>${apache.http.version}</version>
    108       </dependency>
    109       <dependency>
    110         <groupId>io.airlift</groupId>
    111         <artifactId>airline</artifactId>
    112         <version>${airlift.version}</version>
    113       </dependency>
    114       <dependency>
    115         <groupId>com.google.guava</groupId>
    116         <artifactId>guava</artifactId>
    117         <version>${guava.version}</version>
    118       </dependency>
    119       <dependency>
    120         <groupId>com.google.android</groupId>
    121         <artifactId>android</artifactId>
    122         <version>${android.version}</version>
    123       </dependency>
    124     </dependencies>
    125   </dependencyManagement>
    126 
    127   <build>
    128     <pluginManagement>
    129       <plugins>
    130         <plugin>
    131           <groupId>org.apache.maven.plugins</groupId>
    132           <artifactId>maven-compiler-plugin</artifactId>
    133           <version>3.0</version>
    134           <configuration>
    135             <source>${java.version}</source>
    136             <target>${java.version}</target>
    137           </configuration>
    138         </plugin>
    139 
    140         <plugin>
    141           <groupId>org.apache.maven.plugins</groupId>
    142           <artifactId>maven-surefire-plugin</artifactId>
    143           <version>2.17</version>
    144           <configuration>
    145             <properties>
    146               <!--
    147                 Configure a listener for enforcing that no uncaught exceptions issue from OkHttp
    148                 tests. Every test must have a <scope>test</scope> dependency on
    149                 okhttp-testing-support.
    150                 -->
    151               <property>
    152                 <name>listener</name>
    153                 <value>com.squareup.okhttp.testing.InstallUncaughtExceptionHandlerListener</value>
    154               </property>
    155             </properties>
    156           </configuration>
    157           <dependencies>
    158             <dependency>
    159               <groupId>org.apache.maven.surefire</groupId>
    160               <artifactId>surefire-junit47</artifactId>
    161               <version>2.17</version>
    162             </dependency>
    163           </dependencies>
    164         </plugin>
    165 
    166         <plugin>
    167           <groupId>org.apache.maven.plugins</groupId>
    168           <artifactId>maven-javadoc-plugin</artifactId>
    169           <version>2.9</version>
    170         </plugin>
    171       </plugins>
    172     </pluginManagement>
    173 
    174     <plugins>
    175       <plugin>
    176         <groupId>org.apache.maven.plugins</groupId>
    177         <artifactId>maven-release-plugin</artifactId>
    178         <version>2.4.2</version>
    179         <dependencies>
    180           <dependency>
    181             <groupId>org.apache.maven.scm</groupId>
    182             <artifactId>maven-scm-provider-gitexe</artifactId>
    183             <version>1.9</version>
    184           </dependency>
    185         </dependencies>
    186         <configuration>
    187           <autoVersionSubmodules>true</autoVersionSubmodules>
    188         </configuration>
    189       </plugin>
    190 
    191       <plugin>
    192         <groupId>org.apache.maven.plugins</groupId>
    193         <artifactId>maven-checkstyle-plugin</artifactId>
    194         <version>2.10</version>
    195         <configuration>
    196           <failsOnError>true</failsOnError>
    197           <configLocation>checkstyle.xml</configLocation>
    198           <consoleOutput>true</consoleOutput>
    199           <excludes>**/CipherSuite.java</excludes>
    200         </configuration>
    201         <executions>
    202           <execution>
    203             <phase>verify</phase>
    204             <goals>
    205               <goal>checkstyle</goal>
    206             </goals>
    207           </execution>
    208         </executions>
    209       </plugin>
    210       <plugin>
    211         <groupId>org.codehaus.mojo</groupId>
    212         <artifactId>animal-sniffer-maven-plugin</artifactId>
    213         <version>1.11</version>
    214         <executions>
    215           <execution>
    216             <phase>test</phase>
    217             <goals>
    218               <goal>check</goal>
    219             </goals>
    220           </execution>
    221         </executions>
    222         <configuration>
    223           <signature>
    224             <groupId>org.codehaus.mojo.signature</groupId>
    225             <artifactId>java16</artifactId>
    226             <version>1.1</version>
    227           </signature>
    228         </configuration>
    229       </plugin>
    230     </plugins>
    231   </build>
    232 
    233   <profiles>
    234     <profile>
    235       <id>alpn-when-jdk7</id>
    236       <activation>
    237         <jdk>1.7</jdk>
    238       </activation>
    239       <properties>
    240         <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk7.version}/alpn-boot-${alpn.jdk7.version}.jar</bootclasspathPrefix>
    241       </properties>
    242       <build>
    243         <pluginManagement>
    244           <plugins>
    245             <plugin>
    246               <groupId>org.apache.maven.plugins</groupId>
    247               <artifactId>maven-surefire-plugin</artifactId>
    248               <configuration>
    249                 <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine>
    250               </configuration>
    251               <dependencies>
    252                 <dependency>
    253                   <groupId>org.mortbay.jetty.alpn</groupId>
    254                   <artifactId>alpn-boot</artifactId>
    255                   <version>${alpn.jdk7.version}</version>
    256                 </dependency>
    257               </dependencies>
    258             </plugin>
    259           </plugins>
    260         </pluginManagement>
    261       </build>
    262     </profile>
    263     <profile>
    264       <id>alpn-when-jdk8</id>
    265       <activation>
    266         <jdk>1.8</jdk>
    267       </activation>
    268       <properties>
    269         <bootclasspathPrefix>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.jdk8.version}/alpn-boot-${alpn.jdk8.version}.jar</bootclasspathPrefix>
    270       </properties>
    271       <build>
    272         <pluginManagement>
    273           <plugins>
    274             <plugin>
    275               <groupId>org.apache.maven.plugins</groupId>
    276               <artifactId>maven-surefire-plugin</artifactId>
    277               <configuration>
    278                 <argLine>-Xbootclasspath/p:${bootclasspathPrefix}</argLine>
    279               </configuration>
    280               <dependencies>
    281                 <dependency>
    282                   <groupId>org.mortbay.jetty.alpn</groupId>
    283                   <artifactId>alpn-boot</artifactId>
    284                   <version>${alpn.jdk8.version}</version>
    285                 </dependency>
    286               </dependencies>
    287             </plugin>
    288           </plugins>
    289         </pluginManagement>
    290       </build>
    291     </profile>
    292   </profiles>
    293 </project>
    294 
    295