nathanmittler | ffc18f6 | 2014-10-28 16:14:27 -0700 | [diff] [blame^] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <groupId>com.google.net.stubby</groupId> |
| 6 | <artifactId>stubby-parent</artifactId> |
| 7 | <version>1.0-SNAPSHOT</version> |
| 8 | <packaging>pom</packaging> |
| 9 | |
| 10 | <name>Stubby</name> |
| 11 | <url>http://TBD.com</url> |
| 12 | |
| 13 | <description> |
| 14 | Stubby is a high-performance RPC framework based on HTTP/2. |
| 15 | </description> |
| 16 | |
| 17 | <organization> |
| 18 | <name>Google Inc.</name> |
| 19 | <url>https://developers.google.com/</url> |
| 20 | </organization> |
| 21 | |
| 22 | <inceptionYear>2014</inceptionYear> |
| 23 | |
| 24 | <licenses> |
| 25 | <license> |
| 26 | <name>New BSD License</name> |
| 27 | <url>http://opensource.org/licenses/BSD-3-Clause</url> |
| 28 | </license> |
| 29 | </licenses> |
| 30 | |
| 31 | <scm> |
| 32 | <url>https://github.com/stubby/stubby-java</url> |
| 33 | <connection>scm:git:git://github.com/google/stubby-java.git</connection> |
| 34 | <developerConnection>scm:git:ssh://git@github.com/google/stubby-java.git |
| 35 | </developerConnection> |
| 36 | <tag>HEAD</tag> |
| 37 | </scm> |
| 38 | |
| 39 | <profiles> |
| 40 | <profile> |
| 41 | <id>jdk8</id> |
| 42 | <activation> |
| 43 | <jdk>[1.8,)</jdk> |
| 44 | </activation> |
| 45 | <properties> |
| 46 | <jetty.alpn.version>8.0.0.v20140317</jetty.alpn.version> |
| 47 | </properties> |
| 48 | </profile> |
| 49 | <profile> |
| 50 | <id>alpn-7u40</id> |
| 51 | <activation> |
| 52 | <property> |
| 53 | <name>java.version</name> |
| 54 | <value>1.7.0_40</value> |
| 55 | </property> |
| 56 | </activation> |
| 57 | <properties> |
| 58 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 59 | </properties> |
| 60 | </profile> |
| 61 | <profile> |
| 62 | <id>alpn-7u45</id> |
| 63 | <activation> |
| 64 | <property> |
| 65 | <name>java.version</name> |
| 66 | <value>1.7.0_45</value> |
| 67 | </property> |
| 68 | </activation> |
| 69 | <properties> |
| 70 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 71 | </properties> |
| 72 | </profile> |
| 73 | <profile> |
| 74 | <id>alpn-7u51</id> |
| 75 | <activation> |
| 76 | <property> |
| 77 | <name>java.version</name> |
| 78 | <value>1.7.0_51</value> |
| 79 | </property> |
| 80 | </activation> |
| 81 | <properties> |
| 82 | <jetty.npn.version>1.1.6.v20130911</jetty.npn.version> |
| 83 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 84 | </properties> |
| 85 | </profile> |
| 86 | <profile> |
| 87 | <id>alpn-7u55</id> |
| 88 | <activation> |
| 89 | <property> |
| 90 | <name>java.version</name> |
| 91 | <value>1.7.0_55</value> |
| 92 | </property> |
| 93 | </activation> |
| 94 | <properties> |
| 95 | <jetty.npn.version>1.1.7.v20140316</jetty.npn.version> |
| 96 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 97 | </properties> |
| 98 | </profile> |
| 99 | <profile> |
| 100 | <id>alpn-7u60</id> |
| 101 | <activation> |
| 102 | <property> |
| 103 | <name>java.version</name> |
| 104 | <value>1.7.0_60</value> |
| 105 | </property> |
| 106 | </activation> |
| 107 | <properties> |
| 108 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 109 | </properties> |
| 110 | </profile> |
| 111 | <profile> |
| 112 | <id>alpn-7u65</id> |
| 113 | <activation> |
| 114 | <property> |
| 115 | <name>java.version</name> |
| 116 | <value>1.7.0_65</value> |
| 117 | </property> |
| 118 | </activation> |
| 119 | <properties> |
| 120 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 121 | </properties> |
| 122 | </profile> |
| 123 | <profile> |
| 124 | <id>alpn-7u67</id> |
| 125 | <activation> |
| 126 | <property> |
| 127 | <name>java.version</name> |
| 128 | <value>1.7.0_67</value> |
| 129 | </property> |
| 130 | </activation> |
| 131 | <properties> |
| 132 | <jetty.alpn.version>7.0.0.v20140317</jetty.alpn.version> |
| 133 | </properties> |
| 134 | </profile> |
| 135 | </profiles> |
| 136 | |
| 137 | <properties> |
| 138 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 139 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 140 | <okhttp.version>2.0.1-SNAPSHOT</okhttp.version> |
| 141 | <netty.version>5.0.0.Alpha2-SNAPSHOT</netty.version> |
| 142 | <jetty.alpn.version>8.0.0.v20140317</jetty.alpn.version> |
| 143 | <jetty.alpn.path> |
| 144 | ${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${jetty.alpn.version}/alpn-boot-${jetty.alpn.version}.jar |
| 145 | </jetty.alpn.path> |
| 146 | <argLine.bootcp>-Xbootclasspath/p:${jetty.alpn.path}</argLine.bootcp> |
| 147 | </properties> |
| 148 | |
| 149 | <modules> |
| 150 | <module>core</module> |
| 151 | <module>stub</module> |
| 152 | <module>auth</module> |
| 153 | <module>okhttp</module> |
| 154 | <module>netty</module> |
| 155 | <module>testing</module> |
| 156 | <module>integration-testing</module> |
| 157 | <module>all</module> |
| 158 | </modules> |
| 159 | |
| 160 | <dependencyManagement> |
| 161 | <dependencies> |
| 162 | <dependency> |
| 163 | <groupId>com.google.protobuf</groupId> |
| 164 | <artifactId>protobuf-java</artifactId> |
| 165 | <version>2.6.1</version> |
| 166 | </dependency> |
| 167 | <dependency> |
| 168 | <groupId>com.squareup.okhttp</groupId> |
| 169 | <artifactId>okhttp</artifactId> |
| 170 | <version>${okhttp.version}</version> |
| 171 | </dependency> |
| 172 | <dependency> |
| 173 | <groupId>com.squareup.okio</groupId> |
| 174 | <artifactId>okio</artifactId> |
| 175 | <version>1.0.1</version> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>io.netty</groupId> |
| 179 | <artifactId>netty-codec-http2</artifactId> |
| 180 | <version>${netty.version}</version> |
| 181 | </dependency> |
| 182 | <dependency> |
| 183 | <groupId>com.twitter</groupId> |
| 184 | <artifactId>hpack</artifactId> |
| 185 | <version>0.9.1</version> |
| 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>com.google.guava</groupId> |
| 189 | <artifactId>guava</artifactId> |
| 190 | <version>18.0</version> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>com.google.code.findbugs</groupId> |
| 194 | <artifactId>jsr305</artifactId> |
| 195 | <version>3.0.0</version> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>javax</groupId> |
| 199 | <artifactId>javaee-api</artifactId> |
| 200 | <version>7.0</version> |
| 201 | </dependency> |
| 202 | <dependency> |
| 203 | <groupId>com.google.oauth-client</groupId> |
| 204 | <artifactId>google-oauth-client</artifactId> |
| 205 | <version>1.18.0-rc</version> |
| 206 | </dependency> |
| 207 | |
| 208 | <dependency> |
| 209 | <groupId>org.eclipse.jetty.alpn</groupId> |
| 210 | <artifactId>alpn-api</artifactId> |
| 211 | <version>1.0.0</version> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>org.mortbay.jetty.alpn</groupId> |
| 215 | <artifactId>alpn-boot</artifactId> |
| 216 | <version>${jetty.alpn.version}</version> |
| 217 | </dependency> |
| 218 | |
| 219 | <dependency> |
| 220 | <groupId>junit</groupId> |
| 221 | <artifactId>junit</artifactId> |
| 222 | <version>4.11</version> |
| 223 | <scope>test</scope> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>org.mockito</groupId> |
| 227 | <artifactId>mockito-core</artifactId> |
| 228 | <version>1.10.8</version> |
| 229 | <scope>test</scope> |
| 230 | </dependency> |
| 231 | </dependencies> |
| 232 | </dependencyManagement> |
| 233 | |
| 234 | <build> |
| 235 | <pluginManagement> |
| 236 | <plugins> |
| 237 | <plugin> |
| 238 | <groupId>org.codehaus.mojo</groupId> |
| 239 | <artifactId>build-helper-maven-plugin</artifactId> |
| 240 | <version>1.9.1</version> |
| 241 | </plugin> |
| 242 | <plugin> |
| 243 | <artifactId>maven-clean-plugin</artifactId> |
| 244 | <version>2.6</version> |
| 245 | </plugin> |
| 246 | <plugin> |
| 247 | <artifactId>maven-javadoc-plugin</artifactId> |
| 248 | <version>2.10.1</version> |
| 249 | </plugin> |
| 250 | <plugin> |
| 251 | <artifactId>maven-jar-plugin</artifactId> |
| 252 | <version>2.5</version> |
| 253 | </plugin> |
| 254 | <plugin> |
| 255 | <artifactId>maven-compiler-plugin</artifactId> |
| 256 | <version>3.1</version> |
| 257 | </plugin> |
| 258 | <plugin> |
| 259 | <groupId>org.codehaus.mojo</groupId> |
| 260 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 261 | <version>1.11</version> |
| 262 | </plugin> |
| 263 | <plugin> |
| 264 | <artifactId>maven-install-plugin</artifactId> |
| 265 | <version>2.5.2</version> |
| 266 | </plugin> |
| 267 | <plugin> |
| 268 | <artifactId>maven-dependency-plugin</artifactId> |
| 269 | <version>2.8</version> |
| 270 | </plugin> |
| 271 | <plugin> |
| 272 | <artifactId>maven-jxr-plugin</artifactId> |
| 273 | <version>2.2</version> |
| 274 | </plugin> |
| 275 | <plugin> |
| 276 | <artifactId>maven-antrun-plugin</artifactId> |
| 277 | <version>1.6</version> |
| 278 | </plugin> |
| 279 | <plugin> |
| 280 | <groupId>kr.motd.maven</groupId> |
| 281 | <artifactId>exec-maven-plugin</artifactId> |
| 282 | <version>1.0.0.Final</version> |
| 283 | </plugin> |
| 284 | <plugin> |
| 285 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 286 | <version>2.13</version> |
| 287 | </plugin> |
| 288 | <plugin> |
| 289 | <groupId>net.dongliu.prettypb</groupId> |
| 290 | <artifactId>maven-protoc-plugin</artifactId> |
| 291 | <version>0.3.2</version> |
| 292 | </plugin> |
| 293 | </plugins> |
| 294 | </pluginManagement> |
| 295 | |
| 296 | <plugins> |
| 297 | <plugin> |
| 298 | <groupId>org.apache.maven.plugins</groupId> |
| 299 | <artifactId>maven-compiler-plugin</artifactId> |
| 300 | <configuration> |
| 301 | <source>1.6</source> |
| 302 | <target>1.6</target> |
| 303 | <compilerArgs> |
| 304 | <arg>-Xlint:unchecked</arg> |
| 305 | <arg>-Xlint:deprecation</arg> |
| 306 | </compilerArgs> |
| 307 | </configuration> |
| 308 | </plugin> |
| 309 | |
| 310 | <!-- ensure that only methods available in java 1.6 can be used even when compiling |
| 311 | with java 1.7+ --> |
| 312 | <plugin> |
| 313 | <groupId>org.codehaus.mojo</groupId> |
| 314 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 315 | <executions> |
| 316 | <execution> |
| 317 | <id>check-java-version</id> |
| 318 | <phase>verify</phase> |
| 319 | <goals> |
| 320 | <goal>check</goal> |
| 321 | </goals> |
| 322 | <configuration> |
| 323 | <signature> |
| 324 | <groupId>org.codehaus.mojo.signature</groupId> |
| 325 | <artifactId>java16</artifactId> |
| 326 | <version>1.1</version> |
| 327 | </signature> |
| 328 | <ignores> |
| 329 | <!-- Ignore lack of FLUSH. Some versions of Android support it, and |
| 330 | we will be removing the code using it. --> |
| 331 | <ignore>java.util.zip.Deflater</ignore> |
| 332 | </ignores> |
| 333 | </configuration> |
| 334 | </execution> |
| 335 | </executions> |
| 336 | </plugin> |
| 337 | |
| 338 | <!-- Enforce code style rules. --> |
| 339 | <!-- TODO(nathanmittler): enable this before going open source. --> |
| 340 | <!-- <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> |
| 341 | <configLocation>checkstyle.xml</configLocation> <headerLocation>checkstyle.license</headerLocation> |
| 342 | <consoleOutput>true</consoleOutput> </configuration> <executions> <execution> <goals> |
| 343 | <goal>check</goal> </goals> </execution> </executions> </plugin> --> |
| 344 | |
| 345 | <!-- Download the alpn-boot.jar in advance to add it to the boot classpath. --> |
| 346 | <plugin> |
| 347 | <artifactId>maven-dependency-plugin</artifactId> |
| 348 | <executions> |
| 349 | <execution> |
| 350 | <id>get-alpn-boot</id> |
| 351 | <phase>validate</phase> |
| 352 | <goals> |
| 353 | <goal>get</goal> |
| 354 | </goals> |
| 355 | <configuration> |
| 356 | <groupId>org.mortbay.jetty.alpn</groupId> |
| 357 | <artifactId>alpn-boot</artifactId> |
| 358 | <version>${jetty.alpn.version}</version> |
| 359 | </configuration> |
| 360 | </execution> |
| 361 | </executions> |
| 362 | </plugin> |
| 363 | </plugins> |
| 364 | </build> |
| 365 | </project> |