Jars have to be modularized to work with jlink since jlink doesn’t work with the automatic module. There is a gradle plugin called the badass jlink plugin that takes care of creating a modularized fat jar from all non-modularized jars. It is the easiest way to create bundled slimmed down runtimes and package it with jpackage.
View all comments
1
u/wildjokers Jul 20 '24
Jars have to be modularized to work with jlink since jlink doesn’t work with the automatic module. There is a gradle plugin called the badass jlink plugin that takes care of creating a modularized fat jar from all non-modularized jars. It is the easiest way to create bundled slimmed down runtimes and package it with jpackage.
https://badass-jlink-plugin.beryx.org/releases/latest/