Merge pull request #2 from kneitzel/GraalVM_NativeTest
Added support for GraalVM native images using -Pnative.
This commit is contained in:
commit
32ed40e208
58
pom.xml
58
pom.xml
@ -23,10 +23,15 @@
|
|||||||
<required.maven.version>3.6.3</required.maven.version>
|
<required.maven.version>3.6.3</required.maven.version>
|
||||||
|
|
||||||
<!-- Dependency versions -->
|
<!-- Dependency versions -->
|
||||||
|
<jetbrains.annotations.version>23.0.0</jetbrains.annotations.version>
|
||||||
<junit.version>5.9.1</junit.version>
|
<junit.version>5.9.1</junit.version>
|
||||||
<lombok.version>1.18.24</lombok.version>
|
<lombok.version>1.18.24</lombok.version>
|
||||||
|
<pmd.version>6.49.0</pmd.version>
|
||||||
|
<spotbugs.version>4.7.2</spotbugs.version>
|
||||||
|
|
||||||
<!-- Plugin dependencies -->
|
<!-- Plugin dependencies -->
|
||||||
|
<codehaus.version.plugin>2.11.0</codehaus.version.plugin>
|
||||||
|
<jpackage.maven.plugin>0.1.3</jpackage.maven.plugin>
|
||||||
<maven.clean.plugin>3.2.0</maven.clean.plugin>
|
<maven.clean.plugin>3.2.0</maven.clean.plugin>
|
||||||
<maven.compiler.plugin>3.10.1</maven.compiler.plugin>
|
<maven.compiler.plugin>3.10.1</maven.compiler.plugin>
|
||||||
<maven.dependency.plugin>3.3.0</maven.dependency.plugin>
|
<maven.dependency.plugin>3.3.0</maven.dependency.plugin>
|
||||||
@ -34,18 +39,14 @@
|
|||||||
<maven.enforcer.plugin>3.1.0</maven.enforcer.plugin>
|
<maven.enforcer.plugin>3.1.0</maven.enforcer.plugin>
|
||||||
<maven.install.plugin>3.0.0-M1</maven.install.plugin>
|
<maven.install.plugin>3.0.0-M1</maven.install.plugin>
|
||||||
<maven.jar.plugin>3.2.2</maven.jar.plugin>
|
<maven.jar.plugin>3.2.2</maven.jar.plugin>
|
||||||
|
<maven.pmd.plugin>3.16.0</maven.pmd.plugin>
|
||||||
<maven.resources.plugin>3.2.0</maven.resources.plugin>
|
<maven.resources.plugin>3.2.0</maven.resources.plugin>
|
||||||
<maven.site.plugin>4.0.0-M1</maven.site.plugin>
|
<maven.site.plugin>4.0.0-M1</maven.site.plugin>
|
||||||
<maven.surfire.plugin>3.0.0-M6</maven.surfire.plugin>
|
<maven.surfire.plugin>3.0.0-M6</maven.surfire.plugin>
|
||||||
<moditect.maven.plugin>1.0.0.RC2</moditect.maven.plugin>
|
<moditect.maven.plugin>1.0.0.RC2</moditect.maven.plugin>
|
||||||
<jpackage.maven.plugin>0.1.3</jpackage.maven.plugin>
|
<native.maven.plugin>0.9.17</native.maven.plugin>
|
||||||
<maven.pmd.plugin>3.16.0</maven.pmd.plugin>
|
|
||||||
<pmd.version>6.49.0</pmd.version>
|
|
||||||
<codehaus.version.plugin>2.11.0</codehaus.version.plugin>
|
|
||||||
<spotbugs.maven.plugin>4.7.2.0</spotbugs.maven.plugin>
|
<spotbugs.maven.plugin>4.7.2.0</spotbugs.maven.plugin>
|
||||||
<spotbugs.version>4.7.2</spotbugs.version>
|
|
||||||
<jetbrains.annotations.version>23.0.0</jetbrains.annotations.version>
|
|
||||||
|
|
||||||
<!-- other properties -->
|
<!-- other properties -->
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
@ -53,8 +54,44 @@
|
|||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>native</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
<version>${native.maven.plugin}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-native</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compile-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>test-native</id>
|
||||||
|
<goals>
|
||||||
|
<goal>test</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>test</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<imageName>${appName}</imageName>
|
||||||
|
<mainClass>${main.class}</mainClass>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
<!-- Lombok -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
@ -62,12 +99,19 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- JUnit 5 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
<artifactId>junit-jupiter-engine</artifactId>
|
<artifactId>junit-jupiter-engine</artifactId>
|
||||||
<version>${junit.version}</version>
|
<version>${junit.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-params</artifactId>
|
||||||
|
<version>${junit.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Dependency used for @NotNull / @Nullable -->
|
<!-- Dependency used for @NotNull / @Nullable -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user