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.7.0</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.7</java.version> 24 <junit.version>4.12</junit.version> 25 <truth.version>0.28</truth.version> 26 <compile-testing.version>0.9</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 (a] 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.0</version> 76 <scope>test</scope> 77 </dependency> 78 <dependency> 79 <groupId>org.mockito</groupId> 80 <artifactId>mockito-core</artifactId> 81 <version>1.10.16</version> 82 <scope>test</scope> 83 </dependency> 84 <dependency> 85 <groupId>org.eclipse.jdt.core.compiler</groupId> 86 <artifactId>ecj</artifactId> 87 <version>4.4.2</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.0</version> 98 <configuration> 99 <source>${java.version}</source> 100 <target>${java.version}</target> 101 </configuration> 102 </plugin> 103 104 <plugin> 105 <groupId>org.apache.maven.plugins</groupId> 106 <artifactId>maven-checkstyle-plugin</artifactId> 107 <version>2.17</version> 108 <configuration> 109 <failsOnError>true</failsOnError> 110 <configLocation>checkstyle.xml</configLocation> 111 <consoleOutput>true</consoleOutput> 112 </configuration> 113 <executions> 114 <execution> 115 <phase>verify</phase> 116 <goals> 117 <goal>checkstyle</goal> 118 </goals> 119 </execution> 120 </executions> 121 </plugin> 122 </plugins> 123 </build> 124 </project> 125