• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
3  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4  <modelVersion>4.0.0</modelVersion>
5  <parent>
6    <groupId>com.google.truth</groupId>
7    <artifactId>truth-parent</artifactId>
8    <version>HEAD-SNAPSHOT</version>
9  </parent>
10  <artifactId>truth</artifactId>
11  <name>Truth Core</name>
12  <dependencies>
13    <dependency>
14      <groupId>com.google.guava</groupId>
15      <artifactId>guava</artifactId>
16    </dependency>
17    <dependency>
18      <groupId>org.checkerframework</groupId>
19      <artifactId>checker-qual</artifactId>
20    </dependency>
21    <dependency>
22      <groupId>junit</groupId>
23      <artifactId>junit</artifactId>
24    </dependency>
25    <!-- Required only to test the -gwt sub-artifact. -->
26    <dependency>
27      <groupId>com.google.gwt</groupId>
28      <artifactId>gwt-user</artifactId>
29      <scope>test</scope>
30    </dependency>
31    <dependency>
32      <groupId>com.google.auto.value</groupId>
33      <artifactId>auto-value-annotations</artifactId>
34    </dependency>
35    <dependency>
36      <groupId>com.google.guava</groupId>
37      <artifactId>guava-gwt</artifactId>
38      <scope>test</scope>
39    </dependency>
40    <dependency>
41      <groupId>com.google.guava</groupId>
42      <artifactId>guava-testlib</artifactId>
43      <scope>test</scope>
44    </dependency>
45    <dependency>
46      <groupId>com.google.testing.compile</groupId>
47      <artifactId>compile-testing</artifactId>
48      <scope>test</scope>
49    </dependency>
50    <dependency>
51      <groupId>com.google.errorprone</groupId>
52      <artifactId>error_prone_annotations</artifactId>
53    </dependency>
54    <dependency>
55      <groupId>org.ow2.asm</groupId>
56      <artifactId>asm</artifactId>
57      <!-- Truth works fine without ASM: It just produces slightly less useful failure messages. Thus, users can exclude ASM if they prefer to reduce dependencies. (For example, ASM will not benefit anyone whose tests run in an Android VM.) Still, we have made it a dependency by default (non-<optional>), both because it provides useful functionality and because we have heard of problems with R8 when it is absent. -->
58    </dependency>
59  </dependencies>
60  <build>
61    <resources>
62      <resource>
63        <directory>src/main/java</directory>
64        <excludes>
65          <exclude>**/*.java</exclude>
66          <exclude>**/*.gwt.xml</exclude>
67        </excludes>
68      </resource>
69    </resources>
70    <testResources>
71      <testResource><directory>src/test/java</directory></testResource>
72    </testResources>
73    <plugins>
74      <plugin>
75        <artifactId>maven-javadoc-plugin</artifactId>
76      </plugin>
77      <plugin>
78        <artifactId>maven-compiler-plugin</artifactId>
79        <configuration>
80          <excludes>
81            <exclude>**/super/**/*.java</exclude>
82          </excludes>
83          <testExcludes>
84            <testExclude>**/super/**/*.java</testExclude>
85          </testExcludes>
86          <annotationProcessorPaths>
87            <path>
88              <groupId>com.google.auto.value</groupId>
89              <artifactId>auto-value</artifactId>
90              <version>${auto-value.version}</version>
91            </path>
92          </annotationProcessorPaths>
93        </configuration>
94      </plugin>
95      <plugin>
96        <artifactId>maven-source-plugin</artifactId>
97        <configuration>
98          <excludes>
99            <exclude>**/super/**</exclude>
100            <exclude>**/*.gwt.xml</exclude>
101          </excludes>
102        </configuration>
103      </plugin>
104      <plugin>
105        <artifactId>maven-jar-plugin</artifactId>
106        <executions>
107          <execution>
108            <id>attach-gwt-sources</id>
109            <phase>post-integration-test</phase>
110            <goals><goal>jar</goal></goals>
111            <configuration>
112              <classifier>gwt</classifier>
113              <classesDirectory>src/main/java</classesDirectory>
114              <includes>
115                <include>**/*.java</include>
116                <include>**/*.gwt.xml</include>
117              </includes>
118              <excludes>
119                <exclude>com/google/common/truth/ClassSubject.java</exclude>
120                <exclude>com/google/common/truth/Expect.java</exclude>
121                <exclude>com/google/common/truth/IteratingVerb.java</exclude>
122                <exclude>com/google/common/truth/ReflectionUtil.java</exclude>
123                <exclude>com/google/common/truth/codegen/**</exclude>
124              </excludes>
125            </configuration>
126          </execution>
127        </executions>
128      </plugin>
129      <plugin>
130        <groupId>org.codehaus.mojo</groupId>
131        <artifactId>animal-sniffer-maven-plugin</artifactId>
132      </plugin>
133      <plugin>
134        <artifactId>maven-surefire-plugin</artifactId>
135        <configuration>
136          <excludes>
137            <exclude>**/*GwtTest.java</exclude>
138          </excludes>
139        </configuration>
140      </plugin>
141      <plugin>
142        <groupId>org.codehaus.mojo</groupId>
143        <artifactId>gwt-maven-plugin</artifactId>
144        <executions>
145          <execution>
146            <id>gwt-test</id>
147            <goals><goal>test</goal></goals>
148            <configuration>
149              <mode>htmlunit</mode>
150              <htmlunit>FF38</htmlunit>
151              <productionMode>true</productionMode>
152              <!-- Fix OutOfMemoryError in Travis. -->
153              <extraJvmArgs>-Xms3500m -Xmx3500m -Xss1024k</extraJvmArgs>
154              <sourceLevel>auto</sourceLevel>
155              <userAgents>gecko1_8</userAgents>
156              <includes>**/*GwtTest.java</includes>
157              <!-- Keep these timeouts very large because, if we hit the timeout, the tests silently pass :( -->
158              <testTimeOut>86400 <!-- seconds --></testTimeOut>
159              <testMethodTimeout>1440 <!-- minutes --></testMethodTimeout>
160            </configuration>
161          </execution>
162        </executions>
163      </plugin>
164    </plugins>
165  </build>
166  <reporting>
167    <plugins>
168      <plugin>
169        <groupId>org.apache.maven.plugins</groupId>
170        <artifactId>maven-project-info-reports-plugin</artifactId>
171        <version>3.1.2</version>
172      </plugin>
173    </plugins>
174  </reporting>
175  <profiles>
176    <profile>
177      <id>java8</id>
178      <activation>
179        <jdk>[1.8,)</jdk>
180      </activation>
181      <properties>
182        <javadoc.param>-Xdoclint:none</javadoc.param>
183      </properties>
184    </profile>
185  </profiles>
186</project>
187