1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 5 6 <modelVersion>4.0.0</modelVersion> 7 <groupId>com.google.guava</groupId> 8 <artifactId>guava-parent</artifactId> 9 <version>31.0.1-jre</version> 10 <packaging>pom</packaging> 11 <name>Guava Maven Parent</name> 12 <description>Parent for guava artifacts</description> 13 <url>https://github.com/google/guava</url> 14 <properties> 15 <!-- Override this with -Dtest.include="**/SomeTest.java" on the CLI --> 16 <test.include>%regex[.*.class]</test.include> 17 <truth.version>1.1.2</truth.version> 18 <checker-framework.version>3.12.0</checker-framework.version> 19 <animal.sniffer.version>1.20</animal.sniffer.version> 20 <maven-javadoc-plugin.version>3.1.0</maven-javadoc-plugin.version> 21 <maven-source-plugin.version>3.2.1</maven-source-plugin.version> 22 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 23 </properties> 24 <issueManagement> 25 <system>GitHub Issues</system> 26 <url>https://github.com/google/guava/issues</url> 27 </issueManagement> 28 <inceptionYear>2010</inceptionYear> 29 <licenses> 30 <license> 31 <name>Apache License, Version 2.0</name> 32 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 33 <distribution>repo</distribution> 34 </license> 35 </licenses> 36 <scm> 37 <connection>scm:git:https://github.com/google/guava.git</connection> 38 <developerConnection>scm:git:git@github.com:google/guava.git</developerConnection> 39 <url>https://github.com/google/guava</url> 40 </scm> 41 <developers> 42 <developer> 43 <id>kevinb9n</id> 44 <name>Kevin Bourrillion</name> 45 <email>kevinb@google.com</email> 46 <organization>Google</organization> 47 <organizationUrl>http://www.google.com</organizationUrl> 48 <roles> 49 <role>owner</role> 50 <role>developer</role> 51 </roles> 52 <timezone>-8</timezone> 53 </developer> 54 </developers> 55 <ciManagement> 56 <system>GitHub Actions</system> 57 <url>https://github.com/google/guava/actions</url> 58 </ciManagement> 59 <modules> 60 <module>guava</module> 61 <module>guava-bom</module> 62 <module>guava-gwt</module> 63 <module>guava-testlib</module> 64 <module>guava-tests</module> 65 </modules> 66 <build> 67 <!-- Handle where Guava deviates from Maven defaults --> 68 <sourceDirectory>src</sourceDirectory> 69 <testSourceDirectory>test</testSourceDirectory> 70 <resources> 71 <resource> 72 <directory>src</directory> 73 <excludes> 74 <exclude>**/*.java</exclude> 75 <exclude>**/*.sw*</exclude> 76 </excludes> 77 </resource> 78 </resources> 79 <testResources> 80 <testResource> 81 <directory>test</directory> 82 <excludes> 83 <exclude>**/*.java</exclude> 84 </excludes> 85 </testResource> 86 </testResources> 87 <plugins> 88 <plugin> 89 <groupId>org.apache.maven.plugins</groupId> 90 <artifactId>maven-enforcer-plugin</artifactId> 91 <executions> 92 <execution> 93 <id>enforce-versions</id> 94 <goals> 95 <goal>enforce</goal> 96 </goals> 97 <configuration> 98 <rules> 99 <requireMavenVersion> 100 <version>3.0.5</version> 101 </requireMavenVersion> 102 <requireJavaVersion> 103 <version>1.8.0</version> 104 </requireJavaVersion> 105 </rules> 106 </configuration> 107 </execution> 108 </executions> 109 </plugin> 110 <plugin> 111 <artifactId>maven-javadoc-plugin</artifactId> 112 <version>${maven-javadoc-plugin.version}</version> 113 </plugin> 114 </plugins> 115 <pluginManagement> 116 <plugins> 117 <plugin> 118 <artifactId>maven-compiler-plugin</artifactId> 119 <version>3.8.1</version> 120 <configuration> 121 <source>1.8</source> 122 <target>1.8</target> 123 <compilerArgs> 124 <!-- 125 Make includes/excludes fully work: 126 https://issues.apache.org/jira/browse/MCOMPILER-174 127 128 (Compare what guava-gwt has to do for maven-javadoc-plugin.) 129 --> 130 <arg>-sourcepath</arg> 131 <arg>doesnotexist</arg> 132 </compilerArgs> 133 </configuration> 134 </plugin> 135 <plugin> 136 <artifactId>maven-jar-plugin</artifactId> 137 <version>3.2.0</version> 138 </plugin> 139 <plugin> 140 <artifactId>maven-source-plugin</artifactId> 141 <version>${maven-source-plugin.version}</version> 142 <executions> 143 <execution> 144 <id>attach-sources</id> 145 <phase>post-integration-test</phase> 146 <goals><goal>jar</goal></goals> 147 </execution> 148 </executions> 149 </plugin> 150 <plugin> 151 <groupId>org.codehaus.mojo</groupId> 152 <artifactId>animal-sniffer-maven-plugin</artifactId> 153 <version>${animal.sniffer.version}</version> 154 <configuration> 155 <checkTestClasses>true</checkTestClasses> 156 <signature> 157 <groupId>org.codehaus.mojo.signature</groupId> 158 <artifactId>java18</artifactId> 159 <version>1.0</version> 160 </signature> 161 </configuration> 162 <executions> 163 <execution> 164 <id>check-java-version-compatibility</id> 165 <phase>test</phase> 166 <goals> 167 <goal>check</goal> 168 </goals> 169 </execution> 170 </executions> 171 </plugin> 172 <plugin> 173 <artifactId>maven-javadoc-plugin</artifactId> 174 <version>${maven-javadoc-plugin.version}</version> 175 <configuration> 176 <quiet>true</quiet> 177 <notimestamp>true</notimestamp> 178 <encoding>UTF-8</encoding> 179 <docencoding>UTF-8</docencoding> 180 <charset>UTF-8</charset> 181 <additionalOptions> 182 <additionalOption>-XDignore.symbol.file</additionalOption> 183 <additionalOption>-Xdoclint:-html</additionalOption> 184 </additionalOptions> 185 <linksource>true</linksource> 186 <source>8</source> 187 </configuration> 188 <executions> 189 <execution> 190 <id>attach-docs</id> 191 <phase>post-integration-test</phase> 192 <goals><goal>jar</goal></goals> 193 </execution> 194 </executions> 195 </plugin> 196 <plugin> 197 <artifactId>maven-dependency-plugin</artifactId> 198 <version>3.1.1</version> 199 </plugin> 200 <plugin> 201 <artifactId>maven-antrun-plugin</artifactId> 202 <version>1.6</version> 203 </plugin> 204 <plugin> 205 <artifactId>maven-surefire-plugin</artifactId> 206 <version>2.7.2</version> 207 <configuration> 208 <includes> 209 <include>${test.include}</include> 210 </includes> 211 <!-- By having our own entries here, we also override the default exclusion filter, which excludes all nested classes. --> 212 <excludes> 213 <!-- https://github.com/google/guava/issues/2840 --> 214 <exclude>%regex[.*PackageSanityTests.*.class]</exclude> 215 <!-- FeatureUtilTest.*ExampleDerivedInterfaceTester, com.google.common.io.*Tester, incidentally FeatureSpecificTestSuiteBuilderTest.MyAbstractTester (but we don't care either way because it's not meant to run on its own but works OK if it does)... but not NullPointerTesterTest, etc. --> 216 <exclude>%regex[.*Tester.class]</exclude> 217 <!-- Anonymous TestCase subclasses in GeneratedMonitorTest --> 218 <exclude>%regex[.*[$]\d+.class]</exclude> 219 </excludes> 220 <redirectTestOutputToFile>true</redirectTestOutputToFile> 221 <runOrder>alphabetical</runOrder> 222 <!-- Set max heap for tests. --> 223 <!-- Catch dependencies on the default locale by setting it to hi-IN. --> 224 <argLine>-Xmx1536M -Duser.language=hi -Duser.country=IN</argLine> 225 </configuration> 226 </plugin> 227 <plugin> 228 <groupId>org.apache.maven.plugins</groupId> 229 <artifactId>maven-enforcer-plugin</artifactId> 230 <version>3.0.0-M3</version> 231 </plugin> 232 </plugins> 233 </pluginManagement> 234 </build> 235 <distributionManagement> 236 <snapshotRepository> 237 <id>sonatype-nexus-snapshots</id> 238 <name>Sonatype Nexus Snapshots</name> 239 <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 240 </snapshotRepository> 241 <repository> 242 <id>sonatype-nexus-staging</id> 243 <name>Nexus Release Repository</name> 244 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 245 </repository> 246 <site> 247 <id>guava-site</id> 248 <name>Guava Documentation Site</name> 249 <url>scp://dummy.server/dontinstall/usestaging</url> 250 </site> 251 </distributionManagement> 252 <dependencyManagement> 253 <dependencies> 254 <dependency> 255 <groupId>com.google.code.findbugs</groupId> 256 <artifactId>jsr305</artifactId> 257 <version>3.0.2</version> 258 </dependency> 259 <dependency> 260 <groupId>org.checkerframework</groupId> 261 <artifactId>checker-qual</artifactId> 262 <version>${checker-framework.version}</version> 263 </dependency> 264 <dependency> 265 <groupId>org.checkerframework</groupId> 266 <artifactId>checker-qual</artifactId> 267 <version>${checker-framework.version}</version> 268 <classifier>sources</classifier> 269 </dependency> 270 <dependency> 271 <groupId>com.google.errorprone</groupId> 272 <artifactId>error_prone_annotations</artifactId> 273 <version>2.7.1</version> 274 </dependency> 275 <dependency> 276 <groupId>com.google.j2objc</groupId> 277 <artifactId>j2objc-annotations</artifactId> 278 <version>1.3</version> 279 </dependency> 280 <dependency> 281 <groupId>junit</groupId> 282 <artifactId>junit</artifactId> 283 <version>4.13.2</version> 284 <scope>test</scope> 285 </dependency> 286 <dependency> 287 <groupId>org.easymock</groupId> 288 <artifactId>easymock</artifactId> 289 <version>4.3</version> 290 <scope>test</scope> 291 </dependency> 292 <dependency> 293 <groupId>org.mockito</groupId> 294 <artifactId>mockito-core</artifactId> 295 <version>3.9.0</version> 296 <scope>test</scope> 297 </dependency> 298 <dependency> 299 <groupId>com.google.jimfs</groupId> 300 <artifactId>jimfs</artifactId> 301 <version>1.2</version> 302 <scope>test</scope> 303 </dependency> 304 <dependency> 305 <groupId>com.google.truth</groupId> 306 <artifactId>truth</artifactId> 307 <version>${truth.version}</version> 308 <scope>test</scope> 309 <exclusions> 310 <exclusion> 311 <!-- use the guava we're building. --> 312 <groupId>com.google.guava</groupId> 313 <artifactId>guava</artifactId> 314 </exclusion> 315 </exclusions> 316 </dependency> 317 <dependency> 318 <groupId>com.google.truth.extensions</groupId> 319 <artifactId>truth-java8-extension</artifactId> 320 <version>${truth.version}</version> 321 <scope>test</scope> 322 <exclusions> 323 <exclusion> 324 <!-- use the guava we're building. --> 325 <groupId>com.google.guava</groupId> 326 <artifactId>guava</artifactId> 327 </exclusion> 328 </exclusions> 329 </dependency> 330 <dependency> 331 <groupId>com.google.caliper</groupId> 332 <artifactId>caliper</artifactId> 333 <version>1.0-beta-2</version> 334 <scope>test</scope> 335 <exclusions> 336 <exclusion> 337 <!-- use the guava we're building. --> 338 <groupId>com.google.guava</groupId> 339 <artifactId>guava</artifactId> 340 </exclusion> 341 </exclusions> 342 </dependency> 343 </dependencies> 344 </dependencyManagement> 345 <profiles> 346 <profile> 347 <id>sonatype-oss-release</id> 348 <build> 349 <plugins> 350 <plugin> 351 <groupId>org.apache.maven.plugins</groupId> 352 <artifactId>maven-source-plugin</artifactId> 353 <version>${maven-source-plugin.version}</version> 354 <executions> 355 <execution> 356 <id>attach-sources</id> 357 <goals> 358 <goal>jar-no-fork</goal> 359 </goals> 360 </execution> 361 </executions> 362 </plugin> 363 <plugin> 364 <groupId>org.apache.maven.plugins</groupId> 365 <artifactId>maven-javadoc-plugin</artifactId> 366 <version>${maven-javadoc-plugin.version}</version> 367 <executions> 368 <execution> 369 <id>attach-javadocs</id> 370 <goals> 371 <goal>jar</goal> 372 </goals> 373 </execution> 374 </executions> 375 </plugin> 376 <plugin> 377 <groupId>org.apache.maven.plugins</groupId> 378 <artifactId>maven-gpg-plugin</artifactId> 379 <version>1.6</version> 380 <executions> 381 <execution> 382 <id>sign-artifacts</id> 383 <phase>verify</phase> 384 <goals> 385 <goal>sign</goal> 386 </goals> 387 </execution> 388 </executions> 389 </plugin> 390 </plugins> 391 </build> 392 </profile> 393 </profiles> 394</project> 395