Skip to content

Commit

Permalink
Add resources for graalvm support
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 26, 2020
1 parent 71b5164 commit 8bafdf7
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,41 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>generate-graalvm-info</id>
<phase>process-classes</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<classpathScope>test</classpathScope>
<executableDependency>
<groupId>info.picocli</groupId>
<artifactId>picocli-codegen</artifactId>
</executableDependency>
<mainClass>picocli.codegen.aot.graalvm.JniConfigGenerator</mainClass>
<arguments>
<argument>org.fusesource.jansi.internal.CLibrary</argument>
<argument>org.fusesource.jansi.internal.Kernel32</argument>
<argument>-o=target/classes/META-INF/native-image/jansi/jni-config.json</argument>
</arguments>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli-codegen</artifactId>
<version>4.5.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

Expand All @@ -269,6 +304,12 @@
<version>5.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli-codegen</artifactId>
<version>4.5.2</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"resources": [
{"pattern": "org/fusesource/jansi/internal/native/FreeBSD/x86/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/FreeBSD/x86_64/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/arm/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/arm64/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/armv7/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/ppc64/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/x86/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Linux/x86_64/libjansi.so"},
{"pattern": "org/fusesource/jansi/internal/native/Mac/x86/libjansi.jnilib"},
{"pattern": "org/fusesource/jansi/internal/native/Mac/x86_64/libjansi.jnilib"},
{"pattern": "org/fusesource/jansi/internal/native/Windows/x86/jansi.dll"},
{"pattern": "org/fusesource/jansi/internal/native/Windows/x86_64/jansi.dll"}
]
}

0 comments on commit 8bafdf7

Please sign in to comment.