Skip to content

Generated GraalVM reflection configuration can exclude Jansi Console #645

@shanetreacy

Description

@shanetreacy

When generating the reflection configuration by running the generateGraalReflectionConfig gradle task, the AnsiConsole class is picked up and included in the output.

  {
    "name" : "org.fusesource.jansi.AnsiConsole",
    "allDeclaredConstructors" : true,
    "allPublicConstructors" : true,
    "allDeclaredMethods" : true,
    "allPublicMethods" : true,
    "fields" : [
      { "name" : "out" }
    ]
  }

Giving this error when attempting to generate a nativeImage

error: Error parsing reflection configuration in blah/build/cli-reflect.json:
Class org.fusesource.jansi.AnsiConsole not found
Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option ReflectionConfigurationFiles.
Error: Image building with exit status 1

Manually removing the AnsiConsole block from the reflection configuration allows native image to build successfully.

Similar to issue #630

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme: codegenAn issue or change related to the picocli-codegen module

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions