jlink - excluding optional dependencies
gunnar at hibernate.org
Fri Feb 17 08:45:17 UTC 2017
How can I exclude optional dependencies when creating a runtime image
In more detail, I have a module A which declares an optional
dependency to another module B via "requires static". I'd like to
create a runtime image which only contains A.
When running jlink with "--add-modules A", I'm getting "Error: B not
found". jlink finishes when I run it with "--add-modules A,B" but then
B is part of the image, too, as per the images release file.
More information about the jigsaw-dev