1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright 2012 Google LLC
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19  <modelVersion>4.0.0</modelVersion>
20
21  <parent>
22    <groupId>com.google.auto.value</groupId>
23    <artifactId>auto-value-parent</artifactId>
24    <version>1.7.4</version>
25  </parent>
26
27  <groupId>com.google.auto.value</groupId>
28  <artifactId>auto-value</artifactId>
29  <version>1.7.4</version>
30  <name>AutoValue Processor</name>
31  <description>
32    Immutable value-type code generation for Java 1.6+.
33  </description>
34  <url>https://github.com/google/auto/tree/master/value</url>
35
36  <scm>
37    <url>http://github.com/google/auto</url>
38    <connection>scm:git:git://github.com/google/auto.git</connection>
39    <developerConnection>scm:git:ssh://git@github.com/google/auto.git</developerConnection>
40    <tag>HEAD</tag>
41  </scm>
42
43  <dependencies>
44    <dependency>
45      <groupId>com.google.auto</groupId>
46      <artifactId>auto-common</artifactId>
47      <version>0.10</version>
48    </dependency>
49    <dependency>
50      <groupId>com.google.auto.service</groupId>
51      <artifactId>auto-service</artifactId>
52      <version>1.0-rc6</version>
53      <scope>provided</scope>
54    </dependency>
55    <dependency>
56      <groupId>com.google.errorprone</groupId>
57      <artifactId>error_prone_annotations</artifactId>
58      <version>2.3.3</version>
59      <scope>provided</scope>
60    </dependency>
61    <dependency>
62      <groupId>com.google.escapevelocity</groupId>
63      <artifactId>escapevelocity</artifactId>
64      <version>0.9.1</version>
65    </dependency>
66    <dependency>
67      <groupId>net.ltgt.gradle.incap</groupId>
68      <artifactId>incap</artifactId>
69      <version>0.2</version>
70    </dependency>
71    <dependency>
72      <groupId>net.ltgt.gradle.incap</groupId>
73      <artifactId>incap-processor</artifactId>
74      <version>0.2</version>
75      <scope>provided</scope>
76    </dependency>
77    <dependency>
78      <groupId>com.google.guava</groupId>
79      <artifactId>guava</artifactId>
80    </dependency>
81    <dependency>
82      <groupId>com.squareup</groupId>
83      <artifactId>javapoet</artifactId>
84    </dependency>
85    <!-- test dependencies -->
86    <dependency>
87      <groupId>com.google.auto.value</groupId>
88      <artifactId>auto-value-annotations</artifactId>
89      <version>${project.version}</version>
90      <scope>test</scope>
91    </dependency>
92    <dependency>
93      <groupId>org.apache.velocity</groupId>
94      <artifactId>velocity</artifactId>
95      <scope>test</scope>
96    </dependency>
97    <dependency>
98      <groupId>com.google.guava</groupId>
99      <artifactId>guava-testlib</artifactId>
100      <scope>test</scope>
101    </dependency>
102    <dependency>
103      <groupId>junit</groupId>
104      <artifactId>junit</artifactId>
105      <scope>test</scope>
106    </dependency>
107    <dependency>
108      <groupId>com.google.truth</groupId>
109      <artifactId>truth</artifactId>
110      <scope>test</scope>
111    </dependency>
112    <dependency>
113      <groupId>com.google.truth.extensions</groupId>
114      <artifactId>truth-java8-extension</artifactId>
115      <scope>test</scope>
116    </dependency>
117    <dependency>
118      <groupId>com.google.testing.compile</groupId>
119      <artifactId>compile-testing</artifactId>
120      <scope>test</scope>
121    </dependency>
122    <dependency>
123       <groupId>org.mockito</groupId>
124       <artifactId>mockito-core</artifactId>
125       <version>3.1.0</version>
126       <scope>test</scope>
127     </dependency>
128  </dependencies>
129
130  <build>
131    <sourceDirectory>../src/main/java</sourceDirectory>
132    <testSourceDirectory>../src/test/java</testSourceDirectory>
133
134    <resources>
135      <resource>
136        <directory>../src/main/java</directory>
137        <includes>
138          <include>**/*.vm</include>
139        </includes>
140      </resource>
141    </resources>
142    <plugins>
143      <plugin>
144        <groupId>org.apache.maven.plugins</groupId>
145        <artifactId>maven-compiler-plugin</artifactId>
146        <configuration>
147          <includes>
148            <include>com/google/auto/value/processor/**/*.java</include>
149            <include>com/google/auto/value/extension/memoized/processor/**/*.java</include>
150            <include>com/google/auto/value/extension/serializable/processor/**/*.java</include>
151            <include>com/google/auto/value/extension/serializable/serializer/**/*.java</include>
152          </includes>
153        </configuration>
154      </plugin>
155      <plugin>
156        <groupId>org.apache.maven.plugins</groupId>
157        <artifactId>maven-jar-plugin</artifactId>
158      </plugin>
159      <plugin>
160        <groupId>org.apache.maven.plugins</groupId>
161        <artifactId>maven-invoker-plugin</artifactId>
162      </plugin>
163      <plugin>
164        <groupId>org.immutables.tools</groupId>
165        <artifactId>maven-shade-plugin</artifactId>
166        <executions>
167          <execution>
168            <phase>package</phase>
169            <goals>
170              <goal>shade</goal>
171            </goals>
172            <configuration>
173              <minimizeJar>true</minimizeJar>
174              <artifactSet>
175                <excludes>
176                  <exclude>com.google.code.findbugs:jsr305</exclude>
177                </excludes>
178              </artifactSet>
179              <relocations>
180                <relocation>
181                  <pattern>org.objectweb</pattern>
182                  <shadedPattern>autovalue.shaded.org.objectweb$</shadedPattern>
183                </relocation>
184                <relocation>
185                  <pattern>com.google</pattern>
186                  <shadedPattern>autovalue.shaded.com.google$</shadedPattern>
187                  <excludes>
188                    <exclude>com.google.auto.value.**</exclude>
189                  </excludes>
190                </relocation>
191                <relocation>
192                  <pattern>com.squareup.javapoet</pattern>
193                  <shadedPattern>autovalue.shaded.com.squareup.javapoet$</shadedPattern>
194                </relocation>
195                <relocation>
196                  <pattern>net.ltgt.gradle.incap</pattern>
197                  <shadedPattern>autovalue.shaded.net.ltgt.gradle.incap$</shadedPattern>
198                </relocation>
199                <relocation>
200                  <pattern>org.checkerframework</pattern>
201                  <shadedPattern>autovalue.shaded.org.checkerframework$</shadedPattern>
202                </relocation>
203              </relocations>
204            </configuration>
205          </execution>
206        </executions>
207      </plugin>
208    </plugins>
209  </build>
210  <profiles>
211    <profile>
212      <id>disable-java8-doclint</id>
213      <activation>
214        <jdk>[1.8,)</jdk>
215      </activation>
216      <properties>
217        <additionalparam>-Xdoclint:none</additionalparam>
218      </properties>
219    </profile>
220  </profiles>
221</project>
222