JFronny
ce02cb3bc1
# Conflicts: # gson/pom.xml # gson/src/main/java/com/google/gson/Gson.java # gson/src/main/java/com/google/gson/GsonBuilder.java # gson/src/main/java/com/google/gson/internal/bind/ArrayTypeAdapter.java # gson/src/main/java/com/google/gson/stream/JsonWriter.java # gson/src/test/java/com/google/gson/functional/ArrayTest.java # gson/src/test/java/com/google/gson/functional/MapTest.java # pom.xml
141 lines
5.1 KiB
XML
141 lines
5.1 KiB
XML
<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>io.gitlab.jfronny</groupId>
|
|
<artifactId>gson-parent</artifactId>
|
|
<version>2.9.2-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>gson</artifactId>
|
|
<name>Gson</name>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache-2.0</name>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<configuration>
|
|
<excludes>
|
|
<!-- module-info.java is compiled using ModiTect -->
|
|
<exclude>module-info.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
</configuration>
|
|
</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-surefire-plugin</artifactId>
|
|
<version>3.0.0-M6</version>
|
|
<configuration>
|
|
<!-- 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>
|
|
</configuration>
|
|
</plugin>
|
|
<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>
|
|
<!-- 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 -->
|
|
<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>
|
|
<plugin>
|
|
<groupId>biz.aQute.bnd</groupId>
|
|
<artifactId>bnd-maven-plugin</artifactId>
|
|
<version>6.3.1</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>bnd-process</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<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>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>templating-maven-plugin</artifactId>
|
|
<version>1.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>filtering-java-templates</id>
|
|
<goals>
|
|
<goal>filter-sources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirectory>${basedir}/src/main/java-templates</sourceDirectory>
|
|
<outputDirectory>${project.build.directory}/generated-sources/java-templates</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|