Skip to content

Cannot build native image using GraalVM for CliktCommand #590

Description

@nkiesel

Building my app that uses Clikt as a native image with $GRAALVM_HOME/bin/native-image results in

Exception in thread "main" java.util.ServiceConfigurationError: com.github.ajalt.mordant.terminal.TerminalInterfaceProvider: Provider com.github.ajalt.mordant.terminal.terminalinterface.jna.TerminalInterfaceProviderJna not found

I avoid this for now by using CoreCliktCommand

Activity

  1. ajalt commented on Apr 17, 2025

    @ajalt
    Owner

    You should be able to build with graal if you exclude the transitive com.github.ajalt.mordant:mordant-jvm-jna and com.github.ajalt.mordant:mordant-jvm-graal-ffi dependencies. That will leave the graal Mordant module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions