Created
June 3, 2020 15:30
-
-
Save abelaska/b3cf5449c2eb226f0cbc485958a75c41 to your computer and use it in GitHub Desktop.
Spring Boot + GraalVM Maven profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>graal</id> | |
<properties> | |
<graalvm.version>20.1.0</graalvm.version> | |
<spring-graal-native.version>0.6.1.RELEASE</spring-graal-native.version> | |
<start-class>cz.monetplus.idport.sdk.management.operator.Application</start-class> | |
</properties> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>spring-milestone</id> | |
<name>Spring milestone</name> | |
<url>https://repo.spring.io/milestone</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<repositories> | |
<repository> | |
<id>spring-milestone</id> | |
<name>Spring milestone</name> | |
<url>https://repo.spring.io/milestone</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.experimental</groupId> | |
<artifactId>spring-graal-native</artifactId> | |
<version>${spring-graal-native.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-context-indexer</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.graalvm.nativeimage</groupId> | |
<artifactId>native-image-maven-plugin</artifactId> | |
<version>${graalvm.version}</version> | |
<configuration> | |
<mainClass>${start-class}</mainClass> | |
<buildArgs>-Dspring.graal.remove-unused-autoconfig=true --no-fallback | |
-H:+ReportExceptionStackTraces --no-server | |
</buildArgs> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>native-image</goal> | |
</goals> | |
<phase>package</phase> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>repackage</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>build-info</id> | |
<goals> | |
<goal>build-info</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment