javafx-maven-plugin icon indicating copy to clipboard operation
javafx-maven-plugin copied to clipboard

Deprecation warning for jlink compress arguments jdk21

Open trashgod opened this issue 11 months ago • 1 comments

While migrating to JDK 21, I encountered the following warning using Java/FX 21.0.2, Maven 3.9.6, and javafx-maven-plugin 0.0.8:

$ mvn clean javafx:jlink
…
[INFO] --- javafx:0.0.8:jlink (default-cli) @ sample ---
Warning: The 2 argument for --compress is deprecated and may be removed in a future release
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
…

The warning appears on stderr and recapitulates the documented deprecation:

$ jlink --help
…
    --compress <compress>  Compression to use in compressing resources:
        Accepted values are:
        zip-[0-9], where zip-0 provides no compression,
        and zip-9 provides the best compression.
        Default is zip-6.
        Deprecated values to be removed in a future release:
        0:  No compression. Equivalent to zip-0.
        1:  Constant String Sharing
        2:  Equivalent to zip-6.
…

Related projects and issues downstream of jlink:

trashgod avatar Feb 28 '24 19:02 trashgod