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.2.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.25</truth.version> 26 <compile-testing.version>0.6</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>0.25</version> 58 <scope>test</scope> 59 </dependency> 60 <dependency> 61 <groupId>com.google.testing.compile</groupId> 62 <artifactId>compile-testing</artifactId> 63 <version>0.6</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 </dependencies> 85 86 <build> 87 <plugins> 88 <plugin> 89 <groupId>org.apache.maven.plugins</groupId> 90 <artifactId>maven-compiler-plugin</artifactId> 91 <version>3.0</version> 92 <configuration> 93 <source>${java.version}</source> 94 <target>${java.version}</target> 95 </configuration> 96 </plugin> 97 98 <plugin> 99 <groupId>org.apache.maven.plugins</groupId> 100 <artifactId>maven-checkstyle-plugin</artifactId> 101 <version>2.13</version> 102 <configuration> 103 <failsOnError>true</failsOnError> 104 <configLocation>checkstyle.xml</configLocation> 105 <consoleOutput>true</consoleOutput> 106 </configuration> 107 <executions> 108 <execution> 109 <phase>verify</phase> 110 <goals> 111 <goal>checkstyle</goal> 112 </goals> 113 </execution> 114 </executions> 115 </plugin> 116 </plugins> 117 </build> 118 </project> 119