beryx / badass-jlink-plugin

Create a custom runtime image of your modular application
https://badass-jlink-plugin.beryx.org
Apache License 2.0
386 stars 27 forks source link

Deprecated option #272

Closed nlisker closed 3 weeks ago

nlisker commented 6 months ago

When using

options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']

the option '--compress', '2' is deprecated. It should be replaced with "--compress", "zip-6", where 6 is the equivalent compression level of the old 2 level. Other zip compression levels are also viable.

xzel23 commented 3 weeks ago

The "zip-..." compression values were introduced after JDK 17 and would give an error when using that version. The old '2' value is supported up to at least Java 23 and works for all Java versions currently supported by the plugin. As this only refers to example code and documentation and the current value works in all cases, this should be left unchanged until we either move past Java 17 as the minimal version or a new Java version is released that drops support for the old values.