cdf8ab5213
Bumps [bnd-maven-plugin](https://github.com/bndtools/bnd) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/bndtools/bnd/releases) - [Changelog](https://github.com/bndtools/bnd/blob/master/docs/ADDING_RELEASE_DOCS.md) - [Commits](https://github.com/bndtools/bnd/compare/6.0.0...6.1.0) --- updated-dependencies: - dependency-name: biz.aQute.bnd:bnd-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
225 lines
7.9 KiB
XML
225 lines
7.9 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>com.google.code.gson</groupId>
|
|
<artifactId>gson-parent</artifactId>
|
|
<version>2.9.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>gson</artifactId>
|
|
<name>Gson</name>
|
|
|
|
<properties>
|
|
<proguardVersion>7.1.1</proguardVersion>
|
|
</properties>
|
|
|
|
<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>
|
|
<jdkToolchain>
|
|
<version>9</version>
|
|
</jdkToolchain>
|
|
<release>9</release>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>base-compile</id>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>module-info.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<jdkToolchain>
|
|
<version>[1.5,9)</version>
|
|
</jdkToolchain>
|
|
<source>1.6</source>
|
|
<target>1.6</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M5</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>
|
|
<links>
|
|
<link>https://docs.oracle.com/javase/6/docs/api/</link>
|
|
</links>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>biz.aQute.bnd</groupId>
|
|
<artifactId>bnd-maven-plugin</artifactId>
|
|
<version>6.1.0</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>
|
|
<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>
|
|
<plugin>
|
|
<groupId>com.coderplus.maven.plugins</groupId>
|
|
<artifactId>copy-rename-maven-plugin</artifactId>
|
|
<version>1.0.1</version>
|
|
<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>
|
|
<version>2.5.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>proguard</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<proguardVersion>${proguardVersion}</proguardVersion>
|
|
<obfuscate>true</obfuscate>
|
|
<injar>test-classes-obfuscated-injar</injar>
|
|
<outjar>test-classes-obfuscated-outjar</outjar>
|
|
<inFilter>**/*.class</inFilter>
|
|
<proguardInclude>${basedir}/src/test/resources/testcases-proguard.conf</proguardInclude>
|
|
<libs>
|
|
<lib>${project.build.directory}/classes</lib>
|
|
<lib>${java.home}/jmods/java.base.jmod</lib>
|
|
</libs>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.guardsquare</groupId>
|
|
<artifactId>proguard-core</artifactId>
|
|
<version>${proguardVersion}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.guardsquare</groupId>
|
|
<artifactId>proguard-base</artifactId>
|
|
<version>${proguardVersion}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<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>
|
|
<directory>${project.build.directory}/test-classes-obfuscated-outjar/com/google/gson/functional</directory>
|
|
<includes>
|
|
<include>EnumWithObfuscatedTest.class</include>
|
|
<include>EnumWithObfuscatedTest$Gender.class</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|