1<?xml version="1.0" encoding="UTF-8"?>
2
3<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">
4  <modelVersion>4.0.0</modelVersion>
5
6  <parent>
7    <groupId>org.sonatype.oss</groupId>
8    <artifactId>oss-parent</artifactId>
9    <version>7</version>
10  </parent>
11
12  <groupId>com.squareup</groupId>
13  <artifactId>javapoet</artifactId>
14  <version>1.11.1</version>
15
16  <name>JavaPoet</name>
17  <description>Use beautiful Java code to generate beautiful Java code.</description>
18  <url>http://github.com/square/javapoet/</url>
19
20  <properties>
21    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22
23    <java.version>1.8</java.version>
24    <junit.version>4.12</junit.version>
25    <truth.version>0.39</truth.version>
26    <compile-testing.version>0.15</compile-testing.version>
27  </properties>
28
29  <scm>
30    <url>http://github.com/square/javapoet/</url>
31    <connection>scm:git:git://github.com/square/javapoet.git</connection>
32    <developerConnection>scm:git:ssh://git@github.com/square/javapoet.git</developerConnection>
33    <tag>HEAD</tag>
34  </scm>
35
36  <issueManagement>
37    <system>GitHub Issues</system>
38    <url>http://github.com/square/javapoet/issues</url>
39  </issueManagement>
40
41  <licenses>
42    <license>
43      <name>Apache 2.0</name>
44      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
45    </license>
46  </licenses>
47
48  <organization>
49    <name>Square, Inc.</name>
50    <url>http://squareup.com</url>
51  </organization>
52
53  <dependencies>
54    <dependency>
55      <groupId>com.google.truth</groupId>
56      <artifactId>truth</artifactId>
57      <version>${truth.version}</version>
58      <scope>test</scope>
59    </dependency>
60    <dependency>
61      <groupId>com.google.testing.compile</groupId>
62      <artifactId>compile-testing</artifactId>
63      <version>${compile-testing.version}</version>
64      <scope>test</scope>
65    </dependency>
66    <dependency>
67      <groupId>junit</groupId>
68      <artifactId>junit</artifactId>
69      <version>${junit.version}</version>
70      <scope>test</scope>
71    </dependency>
72    <dependency>
73      <groupId>com.google.jimfs</groupId>
74      <artifactId>jimfs</artifactId>
75      <version>1.1</version>
76      <scope>test</scope>
77    </dependency>
78    <dependency>
79      <groupId>org.mockito</groupId>
80      <artifactId>mockito-core</artifactId>
81      <version>2.13.0</version>
82      <scope>test</scope>
83    </dependency>
84    <dependency>
85      <groupId>org.eclipse.jdt.core.compiler</groupId>
86      <artifactId>ecj</artifactId>
87      <version>4.6.1</version>
88      <scope>test</scope>
89    </dependency>
90  </dependencies>
91
92  <build>
93    <plugins>
94      <plugin>
95        <groupId>org.apache.maven.plugins</groupId>
96        <artifactId>maven-compiler-plugin</artifactId>
97        <version>3.7.0</version>
98        <configuration>
99          <compilerId>javac-with-errorprone</compilerId>
100          <forceJavacCompilerUse>true</forceJavacCompilerUse>
101          <source>${java.version}</source>
102          <target>${java.version}</target>
103        </configuration>
104        <dependencies>
105          <dependency>
106            <groupId>org.codehaus.plexus</groupId>
107            <artifactId>plexus-compiler-javac-errorprone</artifactId>
108            <version>2.8.2</version>
109          </dependency>
110          <dependency>
111            <groupId>com.google.errorprone</groupId>
112            <artifactId>error_prone_core</artifactId>
113            <version>2.3.1</version>
114          </dependency>
115        </dependencies>
116      </plugin>
117
118      <plugin>
119        <groupId>org.apache.maven.plugins</groupId>
120        <artifactId>maven-checkstyle-plugin</artifactId>
121        <version>2.17</version>
122        <dependencies>
123          <dependency>
124            <groupId>com.puppycrawl.tools</groupId>
125            <artifactId>checkstyle</artifactId>
126            <version>8.7</version>
127          </dependency>
128        </dependencies>
129        <configuration>
130          <failsOnError>true</failsOnError>
131          <configLocation>checkstyle.xml</configLocation>
132          <consoleOutput>true</consoleOutput>
133        </configuration>
134        <executions>
135          <execution>
136            <phase>verify</phase>
137            <goals>
138              <goal>checkstyle</goal>
139            </goals>
140          </execution>
141        </executions>
142      </plugin>
143
144      <plugin>
145        <groupId>org.apache.maven.plugins</groupId>
146        <artifactId>maven-jar-plugin</artifactId>
147        <version>3.0.2</version>
148        <configuration>
149          <archive>
150            <manifestEntries>
151              <Automatic-Module-Name>com.squareup.javapoet</Automatic-Module-Name>
152            </manifestEntries>
153          </archive>
154        </configuration>
155      </plugin>
156
157    </plugins>
158  </build>
159</project>
160