Skip to content

Commit

Permalink
Merge pull request #172 from Afrouper/maven_native-image
Browse files Browse the repository at this point in the history
"Optimized" way for native image configuration and maven build
  • Loading branch information
xeraph authored Dec 20, 2021
2 parents 432436b + 6007827 commit 8aaa0e5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,32 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>native</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>0.9.8</version>
<extensions>true</extensions>
<executions>
<execution>
<id>build-native</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<imageName>${project.artifactId}</imageName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
4 changes: 0 additions & 4 deletions scanner.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Args = -H:-CheckToolchain -H:+AllowIncompleteClasspath -H:ReflectionConfigurationResources=${.}/reflection-config.json
ImageName = log4j2-scan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
{ "name": "sun.nio.fs.WindowsFileAttributes", "allDeclaredConstructors" : true, "allPublicConstructors" : true, "allDeclaredFields": true, "allDeclaredMethods": true, "allPublicMethods": true},
{ "name": "java.nio.file.attribute.DosFileAttributes", "allDeclaredConstructors" : true, "allPublicConstructors" : true, "allDeclaredFields": true, "allDeclaredMethods": true, "allPublicMethods": true}
]

0 comments on commit 8aaa0e5

Please sign in to comment.