Skip to content

When using jlink, we can't use --add-modules ALL-MODULE-PATH #350

@cmdjulian

Description

@cmdjulian

When using --add-modules ALL-MODULE-PATH as jlink arg to add all modules to the jre, the build fails with: Error: Module all-module-path not found. Note the lowercase here

Expected Behavior

Build should work

Possible Solution

Maybe there is some toLowerCase() call?

Steps to Reproduce

  1. add BP_JVM_JLINK_ENABLED: true
  2. add BP_JVM_JLINK_ARGS: --add-modules ALL-MODULE-PATH --compress=2 --no-header-files --no-man-pages --strip-debug

Motivations

We wanna test and get a feeling for jlink. Currently our application is not modulrized, so we wanna start by trimming the modules from all modules. It also is mentioned in jlink help section to use that shortcut:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions