1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2012 Google LLC 4 Copyright (C) 2012 Square, Inc. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17--> 18<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 20 <modelVersion>4.0.0</modelVersion> 21 22 <groupId>com.google.auto.factory</groupId> 23 <artifactId>auto-factory</artifactId> 24 <version>HEAD-SNAPSHOT</version> 25 <name>AutoFactory</name> 26 <description> 27 JSR-330-compatible factories. 28 </description> 29 <url>https://github.com/google/auto/tree/main/factory</url> 30 31 <properties> 32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 33 <auto-service.version>1.1.1</auto-service.version> 34 <auto-value.version>1.10.3</auto-value.version> 35 <java.version>1.8</java.version> 36 <guava.version>32.1.2-jre</guava.version> 37 <truth.version>1.1.5</truth.version> 38 </properties> 39 40 <scm> 41 <url>http://github.com/google/auto</url> 42 <connection>scm:git:git://github.com/google/auto.git</connection> 43 <developerConnection>scm:git:ssh://git@github.com/google/auto.git</developerConnection> 44 <tag>HEAD</tag> 45 </scm> 46 47 <issueManagement> 48 <system>GitHub Issues</system> 49 <url>http://github.com/google/auto/issues</url> 50 </issueManagement> 51 52 <licenses> 53 <license> 54 <name>Apache 2.0</name> 55 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 56 </license> 57 </licenses> 58 59 <organization> 60 <name>Google LLC</name> 61 <url>http://www.google.com</url> 62 </organization> 63 64 <distributionManagement> 65 <snapshotRepository> 66 <id>sonatype-nexus-snapshots</id> 67 <name>Sonatype Nexus Snapshots</name> 68 <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 69 </snapshotRepository> 70 <repository> 71 <id>sonatype-nexus-staging</id> 72 <name>Nexus Release Repository</name> 73 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 74 </repository> 75 </distributionManagement> 76 77 <dependencies> 78 <dependency> 79 <groupId>com.google.auto</groupId> 80 <artifactId>auto-common</artifactId> 81 <version>1.2.2</version> 82 </dependency> 83 <dependency> 84 <groupId>com.google.auto.value</groupId> 85 <artifactId>auto-value-annotations</artifactId> 86 <version>${auto-value.version}</version> 87 </dependency> 88 <dependency> 89 <groupId>com.google.auto.service</groupId> 90 <artifactId>auto-service-annotations</artifactId> 91 <version>${auto-service.version}</version> 92 </dependency> 93 <dependency> 94 <groupId>net.ltgt.gradle.incap</groupId> 95 <artifactId>incap</artifactId> 96 <version>1.0.0</version> 97 <scope>provided</scope> 98 </dependency> 99 <dependency> 100 <groupId>com.google.guava</groupId> 101 <artifactId>guava</artifactId> 102 <version>${guava.version}</version> 103 </dependency> 104 <dependency> 105 <groupId>com.squareup</groupId> 106 <artifactId>javapoet</artifactId> 107 <version>1.13.0</version> 108 </dependency> 109 <dependency> 110 <groupId>javax.inject</groupId> 111 <artifactId>javax.inject</artifactId> 112 <version>1</version> 113 </dependency> 114 <!-- test dependencies --> 115 <dependency> 116 <groupId>com.google.testing.compile</groupId> 117 <artifactId>compile-testing</artifactId> 118 <version>0.21.0</version> 119 <scope>test</scope> 120 </dependency> 121 <dependency> 122 <groupId>com.google.testparameterinjector</groupId> 123 <artifactId>test-parameter-injector</artifactId> 124 <version>1.12</version> 125 <scope>test</scope> 126 </dependency> 127 <dependency> 128 <groupId>junit</groupId> 129 <artifactId>junit</artifactId> 130 <version>4.13.2</version> 131 <scope>test</scope> 132 </dependency> 133 <dependency> 134 <groupId>com.google.truth</groupId> 135 <artifactId>truth</artifactId> 136 <version>${truth.version}</version> 137 <scope>test</scope> 138 </dependency> 139 <dependency> 140 <groupId>com.google.code.findbugs</groupId> 141 <artifactId>jsr305</artifactId> 142 <version>3.0.2</version> 143 <scope>test</scope> 144 </dependency> 145 <dependency> 146 <groupId>org.checkerframework</groupId> 147 <artifactId>checker-compat-qual</artifactId> 148 <version>2.5.5</version> 149 <scope>test</scope> 150 </dependency> 151 </dependencies> 152 153 <build> 154 <plugins> 155 <plugin> 156 <artifactId>maven-compiler-plugin</artifactId> 157 <version>3.11.0</version> 158 <configuration> 159 <source>${java.version}</source> 160 <target>${java.version}</target> 161 <compilerArgument>-Xlint:all</compilerArgument> 162 <showWarnings>true</showWarnings> 163 <showDeprecation>true</showDeprecation> 164 <annotationProcessorPaths> 165 <path> 166 <groupId>com.google.auto.service</groupId> 167 <artifactId>auto-service</artifactId> 168 <version>${auto-service.version}</version> 169 </path> 170 <path> 171 <groupId>com.google.auto.value</groupId> 172 <artifactId>auto-value</artifactId> 173 <version>${auto-value.version}</version> 174 </path> 175 <path> 176 <groupId>net.ltgt.gradle.incap</groupId> 177 <artifactId>incap-processor</artifactId> 178 <version>1.0.0</version> 179 </path> 180 </annotationProcessorPaths> 181 </configuration> 182 <dependencies> 183 <dependency> 184 <groupId>org.codehaus.plexus</groupId> 185 <artifactId>plexus-java</artifactId> 186 <version>1.1.2</version> 187 </dependency> 188 </dependencies> 189 </plugin> 190 <plugin> 191 <groupId>org.apache.maven.plugins</groupId> 192 <artifactId>maven-surefire-plugin</artifactId> 193 <version>3.1.2</version> 194 <configuration> 195 <argLine>${test.jvm.flags}</argLine> 196 </configuration> 197 </plugin> 198 <plugin> 199 <artifactId>maven-jar-plugin</artifactId> 200 <version>3.3.0</version> 201 </plugin> 202 <plugin> 203 <artifactId>maven-invoker-plugin</artifactId> 204 <version>3.6.0</version> 205 <configuration> 206 <addTestClassPath>true</addTestClassPath> 207 <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> 208 <localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath> 209 <pomIncludes> 210 <pomInclude>*/pom.xml</pomInclude> 211 </pomIncludes> 212 <streamLogs>true</streamLogs> 213 </configuration> 214 <executions> 215 <execution> 216 <id>integration-test</id> 217 <goals> 218 <goal>install</goal> 219 <goal>run</goal> 220 </goals> 221 </execution> 222 </executions> 223 </plugin> 224 <plugin> 225 <groupId>org.immutables.tools</groupId> 226 <artifactId>maven-shade-plugin</artifactId> 227 <version>4</version> 228 </plugin> 229 </plugins> 230 </build> 231 <profiles> 232 <profile> 233 <id>open-modules</id> 234 <activation> 235 <jdk>[9,)</jdk> 236 </activation> 237 <properties> 238 <test.jvm.flags>--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 239 --add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 240 --add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</test.jvm.flags> 241 </properties> 242 </profile> 243 </profiles> 244</project> 245