Skip to content

Commit 28fbeb8

Browse files
authored
feat: introduce Maven configuration for GraalVM testing (#314)
This PR introduces a Maven project profile for GraalVM native image testing.
1 parent 30a71f4 commit 28fbeb8

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

pom.xml

+64
Original file line numberDiff line numberDiff line change
@@ -778,5 +778,69 @@
778778
</build>
779779
</profile>
780780

781+
<profile>
782+
<!-- This profile is used to enable GraalVM native image testing -->
783+
<id>native</id>
784+
785+
<dependencies>
786+
<dependency>
787+
<groupId>com.google.cloud</groupId>
788+
<artifactId>native-image-support</artifactId>
789+
<version>0.8.0</version>
790+
<scope>test</scope>
791+
</dependency>
792+
793+
<dependency>
794+
<groupId>org.junit.vintage</groupId>
795+
<artifactId>junit-vintage-engine</artifactId>
796+
<version>5.7.2</version>
797+
<scope>test</scope>
798+
</dependency>
799+
800+
<dependency>
801+
<groupId>org.graalvm.buildtools</groupId>
802+
<artifactId>junit-platform-native</artifactId>
803+
<version>0.9.5</version>
804+
<scope>test</scope>
805+
</dependency>
806+
</dependencies>
807+
808+
<build>
809+
<plugins>
810+
<plugin>
811+
<groupId>org.apache.maven.plugins</groupId>
812+
<artifactId>maven-surefire-plugin</artifactId>
813+
<!-- Must use older version of surefire plugin for native-image testing. -->
814+
<version>2.22.2</version>
815+
<configuration>
816+
<!-- Include all tests during native image testing. -->
817+
<excludes combine.self="override" />
818+
</configuration>
819+
</plugin>
820+
821+
<plugin>
822+
<groupId>org.graalvm.buildtools</groupId>
823+
<artifactId>native-maven-plugin</artifactId>
824+
<version>0.9.5</version>
825+
<executions>
826+
<execution>
827+
<id>test-native</id>
828+
<goals>
829+
<goal>test</goal>
830+
</goals>
831+
<phase>test</phase>
832+
</execution>
833+
</executions>
834+
<configuration>
835+
<buildArgs>
836+
<buildArg>--no-fallback</buildArg>
837+
<buildArg>--no-server</buildArg>
838+
</buildArgs>
839+
</configuration>
840+
</plugin>
841+
</plugins>
842+
</build>
843+
</profile>
844+
781845
</profiles>
782846
</project>

0 commit comments

Comments
 (0)