blob: 988ecba5e3d83871671c309c195650b8b0dcaa92 [file] [log] [blame]
mccullsbc7e1502010-10-21 23:36:09 +00001<?xml version="1.0" encoding="UTF-8"?>
sberlinb0852382010-08-01 19:55:08 +00002
mccullsbc7e1502010-10-21 23:36:09 +00003<!--
4Copyright (c) 2006 Google, Inc. All rights reserved.
5
6This program is licensed to you under the Apache License Version 2.0,
7and you may not use this file except in compliance with the Apache License Version 2.0.
8You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
9
10Unless required by applicable law or agreed to in writing,
11software distributed under the Apache License Version 2.0 is distributed on an
12"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
14-->
15
16<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">
17
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>com.google</groupId>
22 <artifactId>google</artifactId>
23 <version>5</version>
24 </parent>
25
26 <packaging>pom</packaging>
27
28 <groupId>com.google.inject</groupId>
29 <artifactId>guice-parent</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -070030 <version>4.2.0</version>
mccullsbc7e1502010-10-21 23:36:09 +000031
32 <name>Google Guice</name>
33
34 <description>
Sam Berlin0558b322014-07-10 16:33:32 -040035 Guice is a lightweight dependency injection framework for Java 6 and above
mccullsbc7e1502010-10-21 23:36:09 +000036 </description>
37
Sam Berlin0558b322014-07-10 16:33:32 -040038 <url>https://github.com/google/guice</url>
mccullsbc7e1502010-10-21 23:36:09 +000039 <inceptionYear>2006</inceptionYear>
40
41 <organization>
42 <name>Google, Inc.</name>
43 <url>http://www.google.com</url>
44 </organization>
45
46 <mailingLists>
47 <mailingList>
48 <name>Guice Users List</name>
49 <archive>http://groups.google.com/group/google-guice/topics</archive>
50 <subscribe>http://groups.google.com/group/google-guice/subscribe</subscribe>
51 <unsubscribe>http://groups.google.com/group/google-guice/subscribe</unsubscribe>
52 <post>http://groups.google.com/group/google-guice/post</post>
53 </mailingList>
54 <mailingList>
55 <name>Guice Developers List</name>
56 <archive>http://groups.google.com/group/google-guice-dev/topics</archive>
57 <subscribe>http://groups.google.com/group/google-guice-dev/subscribe</subscribe>
58 <unsubscribe>http://groups.google.com/group/google-guice-dev/subscribe</unsubscribe>
59 <post>http://groups.google.com/group/google-guice-dev/post</post>
60 </mailingList>
61 </mailingLists>
62
63 <scm>
Sam Berlin0558b322014-07-10 16:33:32 -040064 <connection>scm:git:git://github.com/google/guice.git</connection>
65 <developerConnection>scm:git:ssh://git@github.com/google/guice.git</developerConnection>
66 <url>https://github.com/google/guice</url>
mccullsbc7e1502010-10-21 23:36:09 +000067 </scm>
68
69 <issueManagement>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -070070 <system>Github</system>
Sam Berlin0558b322014-07-10 16:33:32 -040071 <url>https://github.com/google/guice/issues/</url>
mccullsbc7e1502010-10-21 23:36:09 +000072 </issueManagement>
73
mcculls00090052010-10-22 00:12:40 +000074 <ciManagement>
Sam Berlin0558b322014-07-10 16:33:32 -040075 <system>Travis</system>
76 <url>https://travis-ci.org/google/guice</url>
mcculls00090052010-10-22 00:12:40 +000077 </ciManagement>
78
mccullsbc7e1502010-10-21 23:36:09 +000079 <licenses>
80 <license>
81 <name>The Apache Software License, Version 2.0</name>
82 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
83 <distribution>repo</distribution>
84 </license>
85 </licenses>
86
Sam Berlinc15e74a2014-08-08 14:17:15 -040087 <distributionManagement>
88 <!-- override the parent's directory to point to the canonical place, and use https. -->
Colin Deckera7e52fc2014-09-24 16:26:07 -040089 <repository>
90 <id>google-releases</id>
91 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92 </repository>
Sam Berlinc15e74a2014-08-08 14:17:15 -040093 <snapshotRepository>
94 <id>google-snapshots</id>
95 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
96 </snapshotRepository>
97 </distributionManagement>
98
mccullsbc7e1502010-10-21 23:36:09 +000099 <modules>
Thomas Broyer3b76b6f2014-11-04 13:26:11 +0100100 <module>bom</module>
mccullsbc7e1502010-10-21 23:36:09 +0000101 <module>core</module>
102 <module>extensions</module>
cgdeckerded13a72014-10-20 10:32:51 -0700103 <!-- jdk8-tests module activated only when running under JDK8, below -->
mccullsbc7e1502010-10-21 23:36:09 +0000104 </modules>
105
mcculls4d4e1602010-11-24 21:16:07 +0000106 <prerequisites>
107 <maven>3.0</maven>
108 </prerequisites>
109
mccullsbc7e1502010-10-21 23:36:09 +0000110 <properties>
mccullsaacb4842010-11-04 22:51:25 +0000111 <!--
112 | The spec version of the public Guice API
113 -->
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700114 <guice.api.version>1.4</guice.api.version>
mcculls8846db32010-11-04 02:22:00 +0000115 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
mccullsaacb4842010-11-04 22:51:25 +0000116 <!--
117 | Use "-Dguice.with.jarjar=false" to build without jarjar
118 -->
mcculls8846db32010-11-04 02:22:00 +0000119 <guice.with.jarjar>true</guice.with.jarjar>
mccullsaacb4842010-11-04 22:51:25 +0000120 <!--
mcculls692ca952010-12-10 15:05:01 +0000121 | Use "-Dguice.with.no_aop=false" to skip the no-AOP variant
mccullsaacb4842010-11-04 22:51:25 +0000122 -->
mcculls692ca952010-12-10 15:05:01 +0000123 <guice.with.no_aop>true</guice.with.no_aop>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700124 <gpg.skip>true</gpg.skip>
mccullsbc7e1502010-10-21 23:36:09 +0000125 </properties>
126
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100127 <dependencyManagement>
128 <dependencies>
129 <dependency>
130 <groupId>javax.inject</groupId>
131 <artifactId>javax.inject</artifactId>
132 <version>1</version>
133 </dependency>
134 <dependency>
135 <groupId>javax.inject</groupId>
136 <artifactId>javax.inject-tck</artifactId>
137 <version>1</version>
138 </dependency>
139 <dependency>
140 <groupId>aopalliance</groupId>
141 <artifactId>aopalliance</artifactId>
142 <version>1.0</version>
143 </dependency>
144 <dependency>
145 <groupId>com.google.guava</groupId>
146 <artifactId>guava</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700147 <version>23.6-android</version>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100148 </dependency>
149 <dependency>
150 <groupId>com.google.guava</groupId>
151 <artifactId>guava-testlib</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700152 <version>23.6-android</version>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100153 </dependency>
154 <dependency>
155 <groupId>org.ow2.asm</groupId>
156 <artifactId>asm</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700157 <version>6.0</version>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100158 </dependency>
159 <dependency>
160 <groupId>cglib</groupId>
161 <artifactId>cglib</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700162 <version>3.2.6</version>
163 </dependency>
164 <dependency>
165 <groupId>junit</groupId>
166 <artifactId>junit</artifactId>
167 <version>4.11</version>
168 <scope>test</scope>
169 </dependency>
170 <dependency>
171 <groupId>com.google.truth</groupId>
172 <artifactId>truth</artifactId>
173 <version>0.36</version>
174 <scope>test</scope>
175 </dependency>
176 <dependency>
177 <groupId>com.google.code.findbugs</groupId>
178 <artifactId>jsr305</artifactId>
179 <version>3.0.1</version>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100180 </dependency>
181 </dependencies>
182 </dependencyManagement>
183
mccullsbc7e1502010-10-21 23:36:09 +0000184 <dependencies>
mcculls8846db32010-11-04 02:22:00 +0000185 <dependency>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800186 <groupId>junit</groupId>
187 <artifactId>junit</artifactId>
sberlinb0852382010-08-01 19:55:08 +0000188 </dependency>
crazybobleeac266a22007-02-26 00:07:01 +0000189 </dependencies>
mccullsbc7e1502010-10-21 23:36:09 +0000190
mccullsbc7e1502010-10-21 23:36:09 +0000191 <build>
mccullsaacb4842010-11-04 22:51:25 +0000192 <!--
193 | Ant-style directories
194 -->
mccullsbc7e1502010-10-21 23:36:09 +0000195 <sourceDirectory>${project.basedir}/src</sourceDirectory>
196 <resources>
197 <resource>
198 <filtering>false</filtering>
199 <directory>${project.basedir}/src</directory>
200 <excludes>
201 <exclude>**/*.java</exclude>
202 </excludes>
203 </resource>
204 </resources>
205 <testSourceDirectory>${project.basedir}/test</testSourceDirectory>
206 <testResources>
207 <testResource>
208 <filtering>false</filtering>
209 <directory>${project.basedir}/test</directory>
210 <excludes>
211 <exclude>**/*.java</exclude>
212 </excludes>
213 </testResource>
214 </testResources>
215 <pluginManagement>
216 <plugins>
mcculls33018c32011-01-04 15:16:27 +0000217 <!--
Stuart McCulloch4ad62562014-09-07 18:19:25 +0100218 | Use 'mvn license:format -N' at top of project to add missing headers
219 -->
220 <plugin>
221 <groupId>com.mycila</groupId>
222 <artifactId>license-maven-plugin</artifactId>
223 <version>2.6</version>
224 <configuration>
225 <encoding>UTF-8</encoding>
226 <header>${project.basedir}/lib/build/header.txt</header>
227 <headerDefinitions>
228 <headerDefinition>${project.basedir}/lib/build/header-definitions.xml</headerDefinition>
229 </headerDefinitions>
230 <skipExistingHeaders>true</skipExistingHeaders>
231 <aggregate>true</aggregate>
232 <includes>
233 <include>**/*.java</include>
234 </includes>
235 <excludes>
236 <!-- avoid touching munged/lib/test/example code -->
237 <exclude>**/build/**</exclude>
238 <exclude>**/target/**</exclude>
239 <exclude>**/lib/**</exclude>
240 <exclude>**/test/**</exclude>
241 <exclude>**/example*/**</exclude>
242 </excludes>
243 <mapping>
244 <java>JAVADOC_STYLE</java>
245 </mapping>
246 </configuration>
247 </plugin>
248 <!--
mcculls33018c32011-01-04 15:16:27 +0000249 | Standard LICENSE and NOTICE files
250 -->
mccullsbc7e1502010-10-21 23:36:09 +0000251 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000252 <artifactId>maven-remote-resources-plugin</artifactId>
253 <version>1.1</version>
254 <executions>
255 <execution>
256 <goals>
257 <goal>process</goal>
258 </goals>
259 <configuration>
260 <resourceBundles>
261 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
262 </resourceBundles>
263 </configuration>
264 </execution>
265 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000266 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000267 <!--
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700268 | Make sure we only use Java7 methods
mccullsaacb4842010-11-04 22:51:25 +0000269 -->
mccullsbc7e1502010-10-21 23:36:09 +0000270 <plugin>
mcculls33018c32011-01-04 15:16:27 +0000271 <artifactId>maven-compiler-plugin</artifactId>
272 <version>2.3.2</version>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800273 <configuration>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700274 <source>1.7</source>
275 <target>1.7</target>
Christian Edward Gruber3236b102014-02-13 10:37:24 -0800276 </configuration>
mcculls33018c32011-01-04 15:16:27 +0000277 </plugin>
278 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000279 <groupId>org.codehaus.mojo</groupId>
280 <artifactId>animal-sniffer-maven-plugin</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700281 <version>1.16</version>
mccullsbc7e1502010-10-21 23:36:09 +0000282 <configuration>
283 <signature>
284 <groupId>org.codehaus.mojo.signature</groupId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700285 <artifactId>java17</artifactId>
mccullsbc7e1502010-10-21 23:36:09 +0000286 <version>1.0</version>
287 </signature>
288 </configuration>
289 <executions>
290 <execution>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700291 <id>check-java-1.7-compat</id>
mccullsbc7e1502010-10-21 23:36:09 +0000292 <phase>process-classes</phase>
293 <goals>
294 <goal>check</goal>
295 </goals>
296 </execution>
297 </executions>
298 </plugin>
mcculls8846db32010-11-04 02:22:00 +0000299 <plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000300 <artifactId>maven-surefire-plugin</artifactId>
mcculls8846db32010-11-04 02:22:00 +0000301 <version>2.5</version>
mccullsbc7e1502010-10-21 23:36:09 +0000302 <configuration>
303 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Christian Edward Gruberba5acdf2013-10-05 14:05:39 -0700304 <!--<argLine>-Dguice_include_stack_traces=OFF</argLine>-->
mccullsbc7e1502010-10-21 23:36:09 +0000305 </configuration>
Christian Edward Grubere1197a92013-11-12 23:06:31 -0800306 <executions>
307 <execution>
308 <id>stack-traces-off</id>
309 <phase>test</phase>
310 <goals><goal>test</goal></goals>
311 <configuration>
312 <argLine>-Dguice_include_stack_traces=OFF</argLine>
313 </configuration>
314 </execution>
315 <execution>
316 <id>stack-traces-complete</id>
317 <phase>test</phase>
318 <goals><goal>test</goal></goals>
319 <configuration>
320 <argLine>-Dguice_include_stack_traces=COMPLETE</argLine>
321 </configuration>
322 </execution>
323 <execution>
324 <id>default-test</id>
325 <phase>test</phase>
326 <goals><goal>test</goal></goals>
327 <configuration>
328 <argLine>-Dguice_include_stack_traces=ONLY_FOR_DECLARING_SOURCE</argLine>
329 </configuration>
330 </execution>
331 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000332 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000333 <!--
334 | Shared OSGi manifest configuration
335 -->
mccullsbc7e1502010-10-21 23:36:09 +0000336 <plugin>
337 <groupId>org.apache.felix</groupId>
338 <artifactId>maven-bundle-plugin</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700339 <version>3.5.0</version>
mccullsbc7e1502010-10-21 23:36:09 +0000340 <configuration>
341 <instructions>
mcculls8846db32010-11-04 02:22:00 +0000342 <module>com.google.inject</module>
343 <_include>-${project.basedir}/build.properties</_include>
mccullsbc7e1502010-10-21 23:36:09 +0000344 <Bundle-Copyright>Copyright (C) 2006 Google Inc.</Bundle-Copyright>
Sam Berlin0558b322014-07-10 16:33:32 -0400345 <Bundle-DocURL>https://github.com/google/guice</Bundle-DocURL>
mcculls8846db32010-11-04 02:22:00 +0000346 <Bundle-Name>${project.artifactId}</Bundle-Name>
347 <Bundle-SymbolicName>$(module)</Bundle-SymbolicName>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100348 <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
mccullsbc7e1502010-10-21 23:36:09 +0000349 <Import-Package>!com.google.inject.*,*</Import-Package>
mcculls8846db32010-11-04 02:22:00 +0000350 <_exportcontents>!*.internal.*,$(module).*;version=${guice.api.version}</_exportcontents>
Stuart McCulloch2fb23e32014-08-17 14:44:01 +0100351 <_versionpolicy>$(version;==;$(@))</_versionpolicy>
mccullsbc7e1502010-10-21 23:36:09 +0000352 <_nouses>true</_nouses>
353 <_removeheaders>
354 Embed-Dependency,Embed-Transitive,
355 Built-By,Tool,Created-By,Build-Jdk,
356 Originally-Created-By,Archiver-Version,
357 Include-Resource,Private-Package,
358 Ignore-Package,Bnd-LastModified
359 </_removeheaders>
360 </instructions>
361 </configuration>
362 <executions>
363 <execution>
364 <phase>prepare-package</phase>
365 <goals>
366 <goal>manifest</goal>
367 </goals>
368 </execution>
369 </executions>
370 </plugin>
mccullsaacb4842010-11-04 22:51:25 +0000371 <!--
372 | Package OSGi manifest in final JAR, also create a JAR of the test classes
373 -->
mccullsbc7e1502010-10-21 23:36:09 +0000374 <plugin>
375 <artifactId>maven-jar-plugin</artifactId>
376 <version>2.3.1</version>
377 <configuration>
378 <archive>
379 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
sberlind5fcf7c2011-01-09 16:10:11 +0000380 <!-- Exclude to mirror ant build -->
Sam Berlin45ef0172012-01-13 18:22:35 -0500381 <addMavenDescriptor>false</addMavenDescriptor>
mccullsbc7e1502010-10-21 23:36:09 +0000382 </archive>
383 </configuration>
384 <executions>
385 <execution>
386 <phase>package</phase>
387 <goals>
388 <goal>test-jar</goal>
389 </goals>
390 </execution>
391 </executions>
392 </plugin>
393 <plugin>
394 <artifactId>maven-javadoc-plugin</artifactId>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700395 <version>3.0.0</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700396 <executions>
397 <execution>
398 <phase>package</phase>
399 <goals>
400 <goal>jar</goal>
401 </goals>
402 </execution>
403 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000404 </plugin>
405 <plugin>
406 <artifactId>maven-source-plugin</artifactId>
407 <version>2.1.2</version>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700408 <executions>
409 <execution>
410 <phase>package</phase>
411 <goals>
412 <goal>jar</goal>
413 <goal>test-jar</goal>
414 </goals>
415 </execution>
416 </executions>
mccullsbc7e1502010-10-21 23:36:09 +0000417 </plugin>
418 <plugin>
419 <artifactId>maven-release-plugin</artifactId>
420 <version>2.1</version>
421 <configuration>
422 <autoVersionSubmodules>true</autoVersionSubmodules>
423 </configuration>
424 </plugin>
mccullsc2420fb2010-12-10 15:52:38 +0000425 <plugin>
426 <artifactId>maven-deploy-plugin</artifactId>
427 <version>2.5</version>
428 </plugin>
mccullsbc7e1502010-10-21 23:36:09 +0000429 </plugins>
430 </pluginManagement>
Christian Edward Gruber359c5c32013-07-31 15:56:55 -0700431 <plugins>
432 <!--
433 | Sign artifacts.
434 -->
435 <plugin>
436 <artifactId>maven-gpg-plugin</artifactId>
437 <version>1.4</version>
438 <executions>
439 <execution>
440 <id>sign-artifacts</id>
441 <phase>verify</phase>
442 <goals><goal>sign</goal></goals>
443 </execution>
444 </executions>
445 </plugin>
446 </plugins>
mccullsbc7e1502010-10-21 23:36:09 +0000447 </build>
448
mcculls88153582010-10-22 00:01:07 +0000449 <profiles>
450 <profile>
cgdeckerd0e92a72015-01-05 12:32:50 -0800451 <id>jdk8</id>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400452 <activation>
453 <jdk>[1.8,)</jdk>
454 </activation>
cgdeckerd0e92a72015-01-05 12:32:50 -0800455 <!-- Activate jdk8-tests module only under JDK 8 -->
cgdeckerded13a72014-10-20 10:32:51 -0700456 <modules>
cgdeckerded13a72014-10-20 10:32:51 -0700457 <module>jdk8-tests</module>
458 </modules>
cgdeckerd0e92a72015-01-05 12:32:50 -0800459 <!-- Disable doclint under JDK 8 -->
460 <reporting>
cgruber5be3e952015-04-21 15:29:21 -0700461 <plugins>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400462 <plugin>
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-javadoc-plugin</artifactId>
465 <configuration>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700466 <additionalOptions>
467 <additionalOption>-Xdoclint:none</additionalOption>
468 </additionalOptions>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400469 </configuration>
470 </plugin>
cgdeckerd0e92a72015-01-05 12:32:50 -0800471 </plugins>
472 </reporting>
473 <build>
474 <plugins>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400475 <plugin>
476 <groupId>org.apache.maven.plugins</groupId>
cgdeckerd0e92a72015-01-05 12:32:50 -0800477 <artifactId>maven-javadoc-plugin</artifactId>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400478 <configuration>
Haibo Huangbfaaf2b2018-08-28 11:18:22 -0700479 <additionalOptions>
480 <additionalOption>-Xdoclint:none</additionalOption>
481 </additionalOptions>
Sam Berlin310d3ad2014-07-25 09:10:16 -0400482 </configuration>
483 </plugin>
484 </plugins>
485 </build>
486 </profile>
mcculls88153582010-10-22 00:01:07 +0000487 </profiles>
cgruberdb4dbfd2015-02-20 15:30:37 -0800488 <!-- TODO(cgruber): Update the google parent pom or migrate to sonatype's -->
crazybobleeac266a22007-02-26 00:07:01 +0000489</project>