1<?xml version="1.0" encoding="UTF-8"?>
2<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">
3  <parent>
4    <artifactId>dagger-parent</artifactId>
5    <groupId>com.google.dagger</groupId>
6    <version>2.1-SNAPSHOT</version>
7  </parent>
8  <modelVersion>4.0.0</modelVersion>
9  <artifactId>dagger-compiler</artifactId>
10  <name>Dagger Compiler</name>
11  <description>Tools to generate Dagger injection and module adapters from annotated code and validate them.</description>
12  <build>
13    <plugins>
14      <plugin>
15        <artifactId>maven-compiler-plugin</artifactId>
16        <executions>
17          <execution>
18            <id>default-compile</id>
19            <goals>
20              <goal>compile</goal>
21            </goals>
22            <configuration>
23              <annotationProcessors>
24                <annotationProcessor>com.google.auto.value.processor.AutoValueProcessor</annotationProcessor>
25                <annotationProcessor>com.google.auto.service.processor.AutoServiceProcessor</annotationProcessor>
26              </annotationProcessors>
27            </configuration>
28          </execution>
29          <execution>
30            <id>default-test-compile</id>
31            <goals>
32              <goal>testCompile</goal>
33            </goals>
34            <configuration>
35              <annotationProcessors>
36                <annotationProcessor>dagger.internal.codegen.ComponentProcessor</annotationProcessor>
37              </annotationProcessors>
38            </configuration>
39          </execution>
40        </executions>
41      </plugin>
42      <plugin>
43        <artifactId>maven-invoker-plugin</artifactId>
44        <executions>
45          <execution>
46            <id>integration-test</id>
47            <goals>
48              <goal>install</goal>
49              <goal>run</goal>
50            </goals>
51          </execution>
52        </executions>
53        <configuration>
54          <addTestClassPath>true</addTestClassPath>
55          <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
56          <cloneClean>true</cloneClean>
57          <profiles>
58            <profile>!sonatype-oss-release</profile>
59          </profiles>
60          <pomIncludes>
61            <pomInclude>*/pom.xml</pomInclude>
62          </pomIncludes>
63          <localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath>
64          <filterProperties>
65            <dagger.version>${project.version}</dagger.version>
66            <dagger.groupId>${project.groupId}</dagger.groupId>
67          </filterProperties>
68          <streamLogs>true</streamLogs>
69        </configuration>
70      </plugin>
71      <plugin>
72        <artifactId>maven-shade-plugin</artifactId>
73        <version>2.3</version>
74        <executions>
75          <execution>
76            <phase>package</phase>
77            <goals>
78              <goal>shade</goal>
79            </goals>
80            <configuration>
81              <minimizeJar>true</minimizeJar>
82              <artifactSet>
83                <excludes>
84                  <exclude>com.google.guava</exclude>
85                  <exclude>com.google.auto.service</exclude>
86                  <exclude>com.google.auto.value</exclude>
87                  <exclude>com.google.dagger:dagger</exclude>
88                  <exclude>com.google.dagger:dagger-producers</exclude>
89                  <exclude>javax.inject</exclude>
90                </excludes>
91              </artifactSet>
92              <relocations>
93                <relocation>
94                  <pattern>com.google.auto.common</pattern>
95                  <shadedPattern>dagger.shaded.auto.common</shadedPattern>
96                </relocation>
97              </relocations>
98            </configuration>
99          </execution>
100        </executions>
101      </plugin>
102    </plugins>
103  </build>
104  <dependencies>
105    <dependency>
106      <groupId>com.google.dagger</groupId>
107      <artifactId>dagger</artifactId>
108      <version>2.1-SNAPSHOT</version>
109      <scope>compile</scope>
110    </dependency>
111    <dependency>
112      <groupId>com.google.dagger</groupId>
113      <artifactId>dagger-producers</artifactId>
114      <version>2.1-SNAPSHOT</version>
115      <scope>compile</scope>
116    </dependency>
117    <dependency>
118      <groupId>com.google.auto.service</groupId>
119      <artifactId>auto-service</artifactId>
120      <version>1.0-rc2</version>
121      <scope>compile</scope>
122      <optional>true</optional>
123    </dependency>
124    <dependency>
125      <groupId>com.google.guava</groupId>
126      <artifactId>guava</artifactId>
127      <version>18.0</version>
128      <scope>compile</scope>
129    </dependency>
130    <dependency>
131      <groupId>com.google.auto.value</groupId>
132      <artifactId>auto-value</artifactId>
133      <version>1.0</version>
134      <scope>compile</scope>
135      <optional>true</optional>
136    </dependency>
137    <dependency>
138      <groupId>junit</groupId>
139      <artifactId>junit</artifactId>
140      <version>4.11</version>
141      <scope>test</scope>
142      <exclusions>
143        <exclusion>
144          <artifactId>hamcrest-core</artifactId>
145          <groupId>org.hamcrest</groupId>
146        </exclusion>
147      </exclusions>
148    </dependency>
149    <dependency>
150      <groupId>com.google.dagger</groupId>
151      <artifactId>dagger</artifactId>
152      <version>2.1-SNAPSHOT</version>
153      <classifier>tests</classifier>
154      <scope>test</scope>
155    </dependency>
156    <dependency>
157      <groupId>com.google.testing.compile</groupId>
158      <artifactId>compile-testing</artifactId>
159      <version>0.7</version>
160      <scope>test</scope>
161      <exclusions>
162        <exclusion>
163          <artifactId>tools</artifactId>
164          <groupId>com.sun</groupId>
165        </exclusion>
166      </exclusions>
167    </dependency>
168    <dependency>
169      <groupId>com.google.guava</groupId>
170      <artifactId>guava-testlib</artifactId>
171      <version>18.0</version>
172      <scope>test</scope>
173      <exclusions>
174        <exclusion>
175          <artifactId>jsr305</artifactId>
176          <groupId>com.google.code.findbugs</groupId>
177        </exclusion>
178      </exclusions>
179    </dependency>
180    <dependency>
181      <groupId>org.mockito</groupId>
182      <artifactId>mockito-core</artifactId>
183      <version>1.9.5</version>
184      <scope>test</scope>
185      <exclusions>
186        <exclusion>
187          <artifactId>objenesis</artifactId>
188          <groupId>org.objenesis</groupId>
189        </exclusion>
190        <exclusion>
191          <artifactId>hamcrest-core</artifactId>
192          <groupId>org.hamcrest</groupId>
193        </exclusion>
194      </exclusions>
195    </dependency>
196    <dependency>
197      <groupId>com.google.truth</groupId>
198      <artifactId>truth</artifactId>
199      <version>0.26</version>
200      <scope>test</scope>
201    </dependency>
202  </dependencies>
203</project>
204
205