blob: caca77bfc92323ab966179b654ad2d876c656b66 [file] [log] [blame]
nathanmittlerffc18f62014-10-28 16:14:27 -07001<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>
nathanmittler66ce6672014-12-15 09:51:28 -08007 <version>0.1.0-SNAPSHOT</version>
nathanmittlerffc18f62014-10-28 16:14:27 -07008 <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>
ejona45230592014-12-14 23:21:22 -0800140 <okhttp.version>2.2.0-SNAPSHOT</okhttp.version>
nathanmittlerffc18f62014-10-28 16:14:27 -0700141 <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>
ejona42989a82014-12-09 18:03:24 -0800293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-assembly-plugin</artifactId>
296 <version>2.5.2</version>
297 </plugin>
298 <plugin>
299 <groupId>com.internetitem</groupId>
300 <artifactId>write-properties-file-maven-plugin</artifactId>
301 <version>1.0.1</version>
302 </plugin>
nathanmittlerffc18f62014-10-28 16:14:27 -0700303 </plugins>
304 </pluginManagement>
305
306 <plugins>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-compiler-plugin</artifactId>
310 <configuration>
311 <source>1.6</source>
312 <target>1.6</target>
313 <compilerArgs>
314 <arg>-Xlint:unchecked</arg>
315 <arg>-Xlint:deprecation</arg>
316 </compilerArgs>
317 </configuration>
318 </plugin>
319
320 <!-- ensure that only methods available in java 1.6 can be used even when compiling
321 with java 1.7+ -->
322 <plugin>
323 <groupId>org.codehaus.mojo</groupId>
324 <artifactId>animal-sniffer-maven-plugin</artifactId>
325 <executions>
326 <execution>
327 <id>check-java-version</id>
328 <phase>verify</phase>
329 <goals>
330 <goal>check</goal>
331 </goals>
332 <configuration>
333 <signature>
334 <groupId>org.codehaus.mojo.signature</groupId>
335 <artifactId>java16</artifactId>
336 <version>1.1</version>
337 </signature>
338 <ignores>
339 <!-- Ignore lack of FLUSH. Some versions of Android support it, and
340 we will be removing the code using it. -->
341 <ignore>java.util.zip.Deflater</ignore>
342 </ignores>
343 </configuration>
344 </execution>
345 </executions>
346 </plugin>
347
348 <!-- Enforce code style rules. -->
349 <!-- TODO(nathanmittler): enable this before going open source. -->
350 <!-- <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration>
351 <configLocation>checkstyle.xml</configLocation> <headerLocation>checkstyle.license</headerLocation>
352 <consoleOutput>true</consoleOutput> </configuration> <executions> <execution> <goals>
353 <goal>check</goal> </goals> </execution> </executions> </plugin> -->
354
355 <!-- Download the alpn-boot.jar in advance to add it to the boot classpath. -->
356 <plugin>
357 <artifactId>maven-dependency-plugin</artifactId>
358 <executions>
359 <execution>
360 <id>get-alpn-boot</id>
361 <phase>validate</phase>
362 <goals>
363 <goal>get</goal>
364 </goals>
365 <configuration>
366 <groupId>org.mortbay.jetty.alpn</groupId>
367 <artifactId>alpn-boot</artifactId>
368 <version>${jetty.alpn.version}</version>
369 </configuration>
370 </execution>
371 </executions>
372 </plugin>
373 </plugins>
374 </build>
ejona42989a82014-12-09 18:03:24 -0800375</project>