Uploaded image for project: 'Maven JLink Plugin'
  1. Maven JLink Plugin
  2. MJLINK-77

Update description and parameters of --compress to reflect JDK21 changes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None

    Description

      Starting from Java 21, the allowed parameters for compress have changed, and the old ones are suspect to removal:

      $ 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.
      
      

      Thus, the current jlink-plugin is incompatible with Java 21:

          /**
           * Here you can define the compression of the resources being used. The command line equivalent is:
           * <code>-c, --compress=level&gt;</code>. The valid values for the level are: <code>0, 1, 2</code>.
           */
          @Parameter
          private Integer compress;
      

      Attachments

        Activity

          People

            bmarwell Benjamin Marwell
            bmarwell Benjamin Marwell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: