2023-08-13 17:44:00 +02:00
|
|
|
<!--
|
|
|
|
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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson-parent</artifactId>
|
|
|
|
<version>2.10.2-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
<artifactId>graal-native-image-test</artifactId>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- GraalVM is JDK >= 17, however for build with regular JDK these tests
|
|
|
|
are also executed with JDK 11, so for them exclude JDK 17 specific tests -->
|
|
|
|
<maven.compiler.testRelease>11</maven.compiler.testRelease>
|
|
|
|
<excludeTestCompilation>**/Java17*</excludeTestCompilation>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<version>${project.parent.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Graal Native Maven Plugin requires using JUnit Platform (JUnit 5), see
|
|
|
|
https://graalvm.github.io/native-build-tools/latest/maven-plugin.html#testing-support
|
|
|
|
This also supports using JUnit Vintage to run JUnit 4 tests, but for simplicity
|
|
|
|
completely use JUnit 5 here and no JUnit 4 at all -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
<version>5.10.0</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.truth</groupId>
|
|
|
|
<artifactId>truth</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.siom79.japicmp</groupId>
|
|
|
|
<artifactId>japicmp-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- This module is not supposed to be consumed as library, so no need to check API -->
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- This module is not supposed to be consumed as library, so no need to check used classes -->
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- This module has no 'main' source code; skip creating JAR and avoid warning on console -->
|
|
|
|
<skipIfEmpty>true</skipIfEmpty>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2023-08-13 22:40:47 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- This module has no 'main' source code, so no JAR is created which could be installed;
|
|
|
|
see maven-jar-plugin configuration above -->
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2023-08-13 17:44:00 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<!-- Not deployed -->
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<!-- Adjust standard `default-testCompile` execution -->
|
|
|
|
<execution>
|
|
|
|
<id>default-testCompile</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<testExcludes>
|
|
|
|
<exclude>${excludeTestCompilation}</exclude>
|
|
|
|
</testExcludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>JDK17</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>[17,)</jdk>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.testRelease>17</maven.compiler.testRelease>
|
|
|
|
<excludeTestCompilation />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>native-image-test</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<version>0.9.24</version>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test-native</id>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<quickBuild>true</quickBuild>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<!-- Workaround for https://github.com/graalvm/native-build-tools/issues/418 -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-utils</artifactId>
|
|
|
|
<!-- Don't upgrade version to >= 4 because that seems to contain potentially backward
|
|
|
|
incompatible changes -->
|
2023-08-14 23:24:08 +02:00
|
|
|
<version>3.5.1</version>
|
2023-08-13 17:44:00 +02:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|