diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 148 |
1 files changed, 124 insertions, 24 deletions
@@ -19,23 +19,15 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.sonatype.oss</groupId> - <artifactId>oss-parent</artifactId> - <version>7</version> - </parent> <groupId>com.google.googlejavaformat</groupId> <artifactId>google-java-format-parent</artifactId> <packaging>pom</packaging> - <version>1.9</version> + <version>HEAD-SNAPSHOT</version> <modules> <module>core</module> - <!-- google-java-format#24 - <module>idea_plugin</module> <module>eclipse_plugin</module> - --> </modules> <name>Google Java Format Parent</name> @@ -95,9 +87,14 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version> - <guava.version>28.1-jre</guava.version> - <truth.version>1.0</truth.version> - <checker.version>2.0.0</checker.version> + <guava.version>31.0.1-jre</guava.version> + <truth.version>1.1.3</truth.version> + <checker.version>3.21.2</checker.version> + <errorprone.version>2.11.0</errorprone.version> + <auto-value.version>1.9</auto-value.version> + <auto-service.version>1.0.1</auto-service.version> + <maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version> + <maven-source-plugin.version>3.2.1</maven-source-plugin.version> </properties> <dependencyManagement> @@ -118,14 +115,24 @@ <dependency> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> - <version>2.0.8</version> + <version>${errorprone.version}</version> + </dependency> + <dependency> + <groupId>com.google.auto.value</groupId> + <artifactId>auto-value-annotations</artifactId> + <version>${auto-value.version}</version> + </dependency> + <dependency> + <groupId>com.google.auto.service</groupId> + <artifactId>auto-service-annotations</artifactId> + <version>${auto-service.version}</version> </dependency> <!-- Test dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.12</version> + <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> @@ -140,6 +147,12 @@ <version>${truth.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>com.google.truth.extensions</groupId> + <artifactId>truth-java8-extension</artifactId> + <version>${truth.version}</version> + <scope>test</scope> + </dependency> </dependencies> </dependencyManagement> @@ -148,28 +161,28 @@ <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> - <version>3.7.0</version> + <version>3.9.0</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> - <version>3.0.2</version> + <version>3.2.2</version> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> - <version>2.1.2</version> + <version>3.2.1</version> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> - <version>3.2.0</version> + <version>3.3.1</version> </plugin> <plugin> <artifactId>maven-gpg-plugin</artifactId> - <version>1.4</version> + <version>3.0.1</version> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> - <version>2.4.0</version> + <version>5.1.4</version> </plugin> </plugins> </pluginManagement> @@ -180,7 +193,9 @@ <configuration> <source>${java.version}</source> <target>${java.version}</target> + <encoding>UTF-8</encoding> <compilerArgs> + <!-- compile-time arguments for google-java-format --> <arg>-XDcompilePolicy=simple</arg> <arg>-Xplugin:ErrorProne</arg> <arg>--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> @@ -195,7 +210,17 @@ <path> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_core</artifactId> - <version>2.3.2</version> + <version>${errorprone.version}</version> + </path> + <path> + <groupId>com.google.auto.value</groupId> + <artifactId>auto-value</artifactId> + <version>${auto-value.version}</version> + </path> + <path> + <groupId>com.google.auto.service</groupId> + <artifactId>auto-service</artifactId> + <version>${auto-service.version}</version> </path> </annotationProcessorPaths> </configuration> @@ -226,7 +251,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> - <version>3.2.0</version> + <version>3.3.1</version> <configuration> <doclint>none</doclint> </configuration> @@ -242,12 +267,87 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.18</version> + <version>2.22.2</version> <configuration> <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 --> - <argLine>-Xmx1024m</argLine> + <argLine> + -Xmx1024m + --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + </argLine> </configuration> </plugin> </plugins> </build> + + <distributionManagement> + <snapshotRepository> + <id>sonatype-nexus-snapshots</id> + <name>Sonatype Nexus Snapshots</name> + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> + </snapshotRepository> + <repository> + <id>sonatype-nexus-staging</id> + <name>Nexus Release Repository</name> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> + </repository> + </distributionManagement> + + <profiles> + <profile> + <id>sonatype-oss-release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${maven-source-plugin.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${maven-javadoc-plugin.version}</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>3.0.1</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |