Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning for jlink compress arguments jdk21 #179

Open
trashgod opened this issue Feb 28, 2024 · 0 comments
Open

Deprecation warning for jlink compress arguments jdk21 #179

trashgod opened this issue Feb 28, 2024 · 0 comments

Comments

@trashgod
Copy link

trashgod commented Feb 28, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant