mirror of
https://github.com/google/gson.git
synced 2026-03-13 08:01:59 +08:00
Bumps the maven group with 16 updates in the / directory: | Package | From | To | | --- | --- | --- | | [com.google.errorprone:error_prone_core](https://github.com/google/error-prone) | `2.45.0` | `2.46.0` | | [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) | `3.1.0` | `3.2.1` | | [org.sonatype.central:central-publishing-maven-plugin](https://github.com/sonatype/central-publishing-maven-plugin) | `0.9.0` | `0.10.0` | | [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) | `3.14.1` | `3.15.0` | | [org.apache.maven.plugins:maven-release-plugin](https://github.com/apache/maven-release) | `3.3.0` | `3.3.1` | | [com.github.siom79.japicmp:japicmp-maven-plugin](https://github.com/siom79/japicmp) | `0.24.2` | `0.25.4` | | [org.codehaus.mojo:animal-sniffer-maven-plugin](https://github.com/mojohaus/animal-sniffer) | `1.26` | `1.27` | | [com.google.errorprone:error_prone_annotations](https://github.com/google/error-prone) | `2.45.0` | `2.46.0` | | [org.codehaus.mojo:templating-maven-plugin](https://github.com/mojohaus/templating-maven-plugin) | `3.0.0` | `3.1.0` | | [org.junit:junit-bom](https://github.com/junit-team/junit-framework) | `6.0.1` | `6.0.2` | | [org.graalvm.buildtools:native-maven-plugin](https://github.com/graalvm/native-build-tools) | `0.11.3` | `0.11.4` | | com.android.tools:r8 | `8.13.17` | `9.0.32` | | [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) | `3.6.2` | `3.6.3` | | [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) | `2.20.1` | `2.21.0` | | [com.google.protobuf:protobuf-java](https://github.com/protocolbuffers/protobuf) | `4.33.1` | `4.33.5` | | [io.github.ascopes:protobuf-maven-plugin](https://github.com/ascopes/protobuf-maven-plugin) | `4.0.3` | `4.1.2` | Updates `com.google.errorprone:error_prone_core` from 2.45.0 to 2.46.0 - [Release notes](https://github.com/google/error-prone/releases) - [Commits](https://github.com/google/error-prone/compare/v2.45.0...v2.46.0) Updates `com.diffplug.spotless:spotless-maven-plugin` from 3.1.0 to 3.2.1 - [Release notes](https://github.com/diffplug/spotless/releases) - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](https://github.com/diffplug/spotless/compare/lib/3.1.0...maven/3.2.1) Updates `org.sonatype.central:central-publishing-maven-plugin` from 0.9.0 to 0.10.0 - [Commits](https://github.com/sonatype/central-publishing-maven-plugin/commits) Updates `org.apache.maven.plugins:maven-compiler-plugin` from 3.14.1 to 3.15.0 - [Release notes](https://github.com/apache/maven-compiler-plugin/releases) - [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.14.1...maven-compiler-plugin-3.15.0) Updates `org.apache.maven.plugins:maven-release-plugin` from 3.3.0 to 3.3.1 - [Release notes](https://github.com/apache/maven-release/releases) - [Commits](https://github.com/apache/maven-release/compare/maven-release-3.3.0...maven-release-3.3.1) Updates `com.github.siom79.japicmp:japicmp-maven-plugin` from 0.24.2 to 0.25.4 - [Release notes](https://github.com/siom79/japicmp/releases) - [Changelog](https://github.com/siom79/japicmp/blob/master/release.py) - [Commits](https://github.com/siom79/japicmp/compare/japicmp-base-0.24.2...japicmp-base-0.25.4) Updates `org.codehaus.mojo:animal-sniffer-maven-plugin` from 1.26 to 1.27 - [Release notes](https://github.com/mojohaus/animal-sniffer/releases) - [Commits](https://github.com/mojohaus/animal-sniffer/compare/animal-sniffer-1.26...animal-sniffer-1.27) Updates `com.google.errorprone:error_prone_annotations` from 2.45.0 to 2.46.0 - [Release notes](https://github.com/google/error-prone/releases) - [Commits](https://github.com/google/error-prone/compare/v2.45.0...v2.46.0) Updates `org.codehaus.mojo:templating-maven-plugin` from 3.0.0 to 3.1.0 - [Release notes](https://github.com/mojohaus/templating-maven-plugin/releases) - [Commits](https://github.com/mojohaus/templating-maven-plugin/compare/3.0.0...templating-maven-plugin-3.1.0) Updates `org.junit:junit-bom` from 6.0.1 to 6.0.2 - [Release notes](https://github.com/junit-team/junit-framework/releases) - [Commits](https://github.com/junit-team/junit-framework/compare/r6.0.1...r6.0.2) Updates `org.graalvm.buildtools:native-maven-plugin` from 0.11.3 to 0.11.4 - [Release notes](https://github.com/graalvm/native-build-tools/releases) - [Commits](https://github.com/graalvm/native-build-tools/compare/0.11.3...0.11.4) Updates `com.android.tools:r8` from 8.13.17 to 9.0.32 Updates `org.codehaus.mojo:exec-maven-plugin` from 3.6.2 to 3.6.3 - [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases) - [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.2...3.6.3) Updates `com.fasterxml.jackson.core:jackson-databind` from 2.20.1 to 2.21.0 - [Commits](https://github.com/FasterXML/jackson/commits) Updates `com.google.protobuf:protobuf-java` from 4.33.1 to 4.33.5 - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Commits](https://github.com/protocolbuffers/protobuf/commits) Updates `io.github.ascopes:protobuf-maven-plugin` from 4.0.3 to 4.1.2 - [Release notes](https://github.com/ascopes/protobuf-maven-plugin/releases) - [Commits](https://github.com/ascopes/protobuf-maven-plugin/compare/v4.0.3...v4.1.2) --- updated-dependencies: - dependency-name: com.google.errorprone:error_prone_core dependency-version: 2.46.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: com.diffplug.spotless:spotless-maven-plugin dependency-version: 3.2.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.sonatype.central:central-publishing-maven-plugin dependency-version: 0.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.apache.maven.plugins:maven-compiler-plugin dependency-version: 3.15.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.apache.maven.plugins:maven-release-plugin dependency-version: 3.3.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: maven - dependency-name: com.github.siom79.japicmp:japicmp-maven-plugin dependency-version: 0.25.4 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.codehaus.mojo:animal-sniffer-maven-plugin dependency-version: '1.27' dependency-type: direct:development update-type: version-update:semver-minor dependency-group: maven - dependency-name: com.google.errorprone:error_prone_annotations dependency-version: 2.46.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.codehaus.mojo:templating-maven-plugin dependency-version: 3.1.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: maven - dependency-name: org.junit:junit-bom dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: maven - dependency-name: org.graalvm.buildtools:native-maven-plugin dependency-version: 0.11.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: maven - dependency-name: com.android.tools:r8 dependency-version: 9.0.32 dependency-type: direct:production update-type: version-update:semver-major dependency-group: maven - dependency-name: org.codehaus.mojo:exec-maven-plugin dependency-version: 3.6.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: maven - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-version: 2.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: com.google.protobuf:protobuf-java dependency-version: 4.33.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: maven - dependency-name: io.github.ascopes:protobuf-maven-plugin dependency-version: 4.1.2 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: maven ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
214 lines
8.3 KiB
XML
214 lines
8.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2023 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson-parent</artifactId>
|
|
<version>2.13.3-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>test-shrinker</artifactId>
|
|
<name>Test: Code shrinking (ProGuard / R8)</name>
|
|
|
|
<properties>
|
|
<maven.compiler.release>8</maven.compiler.release>
|
|
|
|
<!-- Overwrite property from parent -->
|
|
<gson.isTestModule>true</gson.isTestModule>
|
|
</properties>
|
|
|
|
<pluginRepositories>
|
|
<!-- R8 currently only exists in Google Maven repository -->
|
|
<pluginRepository>
|
|
<id>google</id>
|
|
<url>https://maven.google.com</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.truth</groupId>
|
|
<artifactId>truth</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Process JAR with ProGuard -->
|
|
<plugin>
|
|
<groupId>com.github.wvengen</groupId>
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
|
<version>2.7.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>proguard</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<!-- Upgrades ProGuard to version newer than the one included by plugin by default -->
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.guardsquare</groupId>
|
|
<artifactId>proguard-base</artifactId>
|
|
<version>7.8.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.guardsquare</groupId>
|
|
<artifactId>proguard-core</artifactId>
|
|
<version>9.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<obfuscate>true</obfuscate>
|
|
<proguardInclude>${project.basedir}/proguard.pro</proguardInclude>
|
|
<options>
|
|
<!-- Hacky solution to make ProGuard use the library rules file; only the Android plugin of ProGuard
|
|
seems to consider it automatically at the moment, see https://github.com/Guardsquare/proguard/issues/337
|
|
However, R8 defined further below always considers it automatically -->
|
|
<option>-include</option><option>${project.basedir}/../gson/src/main/resources/META-INF/proguard/gson.pro</option>
|
|
</options>
|
|
<libs>
|
|
<lib>${java.home}/jmods/java.base.jmod</lib>
|
|
<!-- Used by Gson for optional SQL types support -->
|
|
<lib>${java.home}/jmods/java.sql.jmod</lib>
|
|
<!-- Used by transitive Error Prone annotations dependency -->
|
|
<lib>${java.home}/jmods/java.compiler.jmod</lib>
|
|
</libs>
|
|
<!-- Include dependencies in the final JAR -->
|
|
<includeDependencyInjar>true</includeDependencyInjar>
|
|
<outjar>proguard-output.jar</outjar>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Prepare a JAR with dependencies for R8 -->
|
|
<!-- Once there is a proper R8 Maven plugin in the future, prefer that and provide
|
|
dependencies as additional input JARs there instead of using the Shade plugin -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.6.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
<!-- Replace the main JAR -->
|
|
<shadedArtifactAttached>false</shadedArtifactAttached>
|
|
<filters>
|
|
<filter>
|
|
<artifact>*:*</artifact>
|
|
<excludes>
|
|
<!-- Ignore duplicate files in dependencies -->
|
|
<exclude>META-INF/MANIFEST.MF</exclude>
|
|
<exclude>META-INF/versions/9/module-info.class</exclude>
|
|
</excludes>
|
|
</filter>
|
|
</filters>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- Process JAR with R8; currently has no dedicated plugin so use Exec Maven Plugin instead -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.6.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>r8</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>java</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- R8 runs as standalone JAR, does not need any of the project classes -->
|
|
<addOutputToClasspath>false</addOutputToClasspath>
|
|
<includeProjectDependencies>false</includeProjectDependencies>
|
|
<!-- R8 is specified as plugin dependency, see further below -->
|
|
<includePluginDependencies>true</includePluginDependencies>
|
|
<executableDependency>
|
|
<!-- Uses R8 dependency declared below -->
|
|
<groupId>com.android.tools</groupId>
|
|
<artifactId>r8</artifactId>
|
|
</executableDependency>
|
|
<!-- See https://r8.googlesource.com/r8/+/refs/heads/main/README.md#running-r8 -->
|
|
<!-- Without `pg-compat` argument this acts like "full mode", see
|
|
https://r8.googlesource.com/r8/+/refs/heads/main/compatibility-faq.md#r8-full-mode -->
|
|
<mainClass>com.android.tools.r8.R8</mainClass>
|
|
<arguments>
|
|
<argument>--release</argument>
|
|
<!-- Produce Java class files instead of Android DEX files -->
|
|
<argument>--classfile</argument>
|
|
<argument>--lib</argument><argument>${java.home}</argument>
|
|
<argument>--pg-conf</argument><argument>${project.basedir}/r8.pro</argument>
|
|
<!-- Create mapping file to make debugging test failures easier -->
|
|
<argument>--pg-map-output</argument><argument>${project.build.directory}/r8_map.txt</argument>
|
|
<argument>--output</argument><argument>${project.build.directory}/r8-output.jar</argument>
|
|
<argument>${project.build.directory}/${project.build.finalName}.jar</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<!-- R8 dependency used above -->
|
|
<!-- Note: For some reason Maven shows the warning "Missing POM for com.android.tools:r8:jar",
|
|
but it appears that can be ignored -->
|
|
<groupId>com.android.tools</groupId>
|
|
<artifactId>r8</artifactId>
|
|
<version>9.0.32</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
|
|
<!-- Run integration tests to verify shrunken JAR behavior -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|