2022-02-11 20:13:22 +01:00
|
|
|
<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">
|
2008-09-01 05:13:32 +02:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2016-02-11 18:47:25 +01:00
|
|
|
|
2011-01-10 23:47:36 +01:00
|
|
|
<parent>
|
2016-02-11 18:47:25 +01:00
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson-parent</artifactId>
|
2022-10-25 02:42:45 +02:00
|
|
|
<version>2.9.2-SNAPSHOT</version>
|
2011-01-10 23:47:36 +01:00
|
|
|
</parent>
|
2016-02-11 18:47:25 +01:00
|
|
|
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<name>Gson</name>
|
|
|
|
|
2021-09-06 19:35:43 +02:00
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>Apache-2.0</name>
|
|
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
2021-09-18 02:19:50 +02:00
|
|
|
|
2022-09-27 21:32:40 +02:00
|
|
|
<properties>
|
|
|
|
<excludeTestCompilation>**/Java17*</excludeTestCompilation>
|
|
|
|
</properties>
|
|
|
|
|
2008-09-01 05:13:32 +02:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2021-09-18 02:19:50 +02:00
|
|
|
|
2008-09-01 05:13:32 +02:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2022-09-07 01:26:53 +02:00
|
|
|
<!--
|
|
|
|
Plugins for source generation and compilation
|
|
|
|
-->
|
2021-11-07 17:42:08 +01:00
|
|
|
<plugin>
|
2022-09-07 01:26:53 +02:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>templating-maven-plugin</artifactId>
|
|
|
|
<version>1.0.0</version>
|
2021-11-07 17:42:08 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-09-07 01:26:53 +02:00
|
|
|
<id>filtering-java-templates</id>
|
|
|
|
<goals>
|
|
|
|
<goal>filter-sources</goal>
|
|
|
|
</goals>
|
2021-11-07 17:42:08 +01:00
|
|
|
<configuration>
|
2022-09-07 01:26:53 +02:00
|
|
|
<sourceDirectory>${basedir}/src/main/java-templates</sourceDirectory>
|
|
|
|
<outputDirectory>${project.build.directory}/generated-sources/java-templates</outputDirectory>
|
2021-11-07 17:42:08 +01:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-11-09 16:16:35 +01:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2022-09-07 01:26:53 +02:00
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2022-01-01 21:44:39 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-09-07 01:26:53 +02:00
|
|
|
<id>default-compile</id>
|
2022-01-01 21:44:39 +01:00
|
|
|
<configuration>
|
2022-09-07 01:26:53 +02:00
|
|
|
<excludes>
|
|
|
|
<!-- module-info.java is compiled using ModiTect -->
|
|
|
|
<exclude>module-info.java</exclude>
|
|
|
|
</excludes>
|
2022-01-01 21:44:39 +01:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2022-09-27 21:32:40 +02:00
|
|
|
<execution>
|
|
|
|
<id>default-testCompile</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<testExcludes>
|
|
|
|
<exclude>${excludeTestCompilation}</exclude>
|
|
|
|
</testExcludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2022-01-01 21:44:39 +01:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-02-23 17:25:21 +01:00
|
|
|
<plugin>
|
|
|
|
<groupId>biz.aQute.bnd</groupId>
|
|
|
|
<artifactId>bnd-maven-plugin</artifactId>
|
2022-06-08 16:21:02 +02:00
|
|
|
<version>6.3.1</version>
|
2016-02-23 17:25:21 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>bnd-process</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-09-07 01:26:53 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Plugins for test execution
|
|
|
|
-->
|
2017-01-11 19:38:33 +01:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2022-09-07 01:26:53 +02:00
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>3.0.0-M7</version>
|
2017-01-11 19:38:33 +01:00
|
|
|
<configuration>
|
2022-09-07 01:26:53 +02:00
|
|
|
<!-- Deny illegal access, this is required for ReflectionAccessTest -->
|
|
|
|
<!-- Requires Java >= 9; Important: In case future Java versions
|
|
|
|
don't support this flag anymore, don't remove it unless CI also runs with
|
|
|
|
that Java version. Ideally would use toolchain to specify that this should
|
|
|
|
run with e.g. Java 11, but Maven toolchain requirements (unlike Gradle ones)
|
|
|
|
don't seem to be portable (every developer would have to set up toolchain
|
|
|
|
configuration locally). -->
|
|
|
|
<argLine>--illegal-access=deny</argLine>
|
2017-01-11 19:38:33 +01:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2019-03-25 03:37:09 +01:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.coderplus.maven.plugins</groupId>
|
|
|
|
<artifactId>copy-rename-maven-plugin</artifactId>
|
2021-08-05 05:03:02 +02:00
|
|
|
<version>1.0.1</version>
|
2019-03-25 03:37:09 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>pre-obfuscate-class</id>
|
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>rename</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<fileSets>
|
|
|
|
<fileSet>
|
|
|
|
<sourceFile>${project.build.directory}/test-classes/com/google/gson/functional/EnumWithObfuscatedTest.class</sourceFile>
|
|
|
|
<destinationFile>${project.build.directory}/test-classes-obfuscated-injar/com/google/gson/functional/EnumWithObfuscatedTest.class</destinationFile>
|
|
|
|
</fileSet>
|
|
|
|
<fileSet>
|
|
|
|
<sourceFile>${project.build.directory}/test-classes/com/google/gson/functional/EnumWithObfuscatedTest$Gender.class</sourceFile>
|
|
|
|
<destinationFile>${project.build.directory}/test-classes-obfuscated-injar/com/google/gson/functional/EnumWithObfuscatedTest$Gender.class</destinationFile>
|
|
|
|
</fileSet>
|
|
|
|
</fileSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.wvengen</groupId>
|
|
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
2022-06-21 02:01:20 +02:00
|
|
|
<version>2.6.0</version>
|
2019-03-25 03:37:09 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-09-07 01:26:53 +02:00
|
|
|
<id>obfuscate-test-class</id>
|
2019-03-25 03:37:09 +01:00
|
|
|
<phase>process-test-classes</phase>
|
2021-09-18 02:19:50 +02:00
|
|
|
<goals>
|
|
|
|
<goal>proguard</goal>
|
|
|
|
</goals>
|
2019-03-25 03:37:09 +01:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<obfuscate>true</obfuscate>
|
|
|
|
<injar>test-classes-obfuscated-injar</injar>
|
|
|
|
<outjar>test-classes-obfuscated-outjar</outjar>
|
|
|
|
<inFilter>**/*.class</inFilter>
|
2020-09-12 06:35:15 +02:00
|
|
|
<proguardInclude>${basedir}/src/test/resources/testcases-proguard.conf</proguardInclude>
|
2019-03-25 03:37:09 +01:00
|
|
|
<libs>
|
|
|
|
<lib>${project.build.directory}/classes</lib>
|
|
|
|
<lib>${java.home}/jmods/java.base.jmod</lib>
|
|
|
|
</libs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
2022-07-26 05:37:16 +02:00
|
|
|
<version>3.3.0</version>
|
2019-03-25 03:37:09 +01:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>post-obfuscate-class</id>
|
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/test-classes/com/google/gson/functional</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
2020-09-10 13:26:10 +02:00
|
|
|
<directory>${project.build.directory}/test-classes-obfuscated-outjar/com/google/gson/functional</directory>
|
2019-03-25 03:37:09 +01:00
|
|
|
<includes>
|
|
|
|
<include>EnumWithObfuscatedTest.class</include>
|
|
|
|
<include>EnumWithObfuscatedTest$Gender.class</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-09-07 01:26:53 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Plugins for building / modifying artifacts
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<!-- Use existing manifest generated by BND plugin -->
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- Add module-info to JAR, see https://github.com/moditect/moditect#adding-module-descriptors-to-existing-jar-files -->
|
|
|
|
<!-- Uses ModiTect instead of separate maven-compiler-plugin executions
|
|
|
|
for better Eclipse IDE support, see https://github.com/eclipse-m2e/m2e-core/issues/393 -->
|
|
|
|
<!-- Note: For some reason this has to be executed before javadoc plugin; otherwise `javadoc:jar` goal fails
|
|
|
|
to find source files -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.moditect</groupId>
|
|
|
|
<artifactId>moditect-maven-plugin</artifactId>
|
|
|
|
<version>1.0.0.RC2</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-module-info</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-module-info</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<jvmVersion>9</jvmVersion>
|
|
|
|
<module>
|
|
|
|
<moduleInfoFile>${project.build.sourceDirectory}/module-info.java</moduleInfoFile>
|
|
|
|
</module>
|
|
|
|
<!-- Overwrite the previously generated JAR file, if any -->
|
|
|
|
<overwriteExistingFiles>true</overwriteExistingFiles>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<!-- Note: Javadoc plugin has to be run in combination with >= `package` phase,
|
|
|
|
e.g. `mvn package javadoc:javadoc`, otherwise it fails with
|
|
|
|
"Aggregator report contains named and unnamed modules" -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludePackageNames>com.google.gson.internal:com.google.gson.internal.bind</excludePackageNames>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2008-09-01 05:13:32 +02:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2022-09-27 21:32:40 +02:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>JDK17</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>[17,)</jdk>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.testRelease>17</maven.compiler.testRelease>
|
2022-10-25 02:42:45 +02:00
|
|
|
<excludeTestCompilation></excludeTestCompilation>
|
2022-09-27 21:32:40 +02:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2008-09-01 05:13:32 +02:00
|
|
|
</project>
|