Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248864

Remove deprecated --bind-services option from jpackage

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 16
    • tools
    • behavioral
    • minimal
    • Hide
      The jpackage tool in JDK14 and JDK15 is "incubator" so changes should be expected.
      The --bind-services option was deprecated in JDK15, but users may still be using that option in their packaging scripts, and removal will require them to modify their scripts.
      Show
      The jpackage tool in JDK14 and JDK15 is "incubator" so changes should be expected. The --bind-services option was deprecated in JDK15, but users may still be using that option in their packaging scripts, and removal will require them to modify their scripts.
    • add/remove/modify command line option
    • JDK

      Summary

      Remove deprecated --bind-services option from jpackage

      Problem

      The jpackage --bind-services option was deprecated in JDK15 with the intention of removing it in JDK16.

      Solution

      Remove the --bind-services option from code, help test, and any documentation or automated tests.

      Specification

      1.) JEP 343: Packaging Tool (Incubator) says:

      For a modular application composed of modular JAR files and/or JMOD files, the runtime image contains the application's main module and the transitive closure of all of its dependencies. It will not include all the available service providers; if you want those to be bound then specify the --bind-services option to the jpackage tool.

      This specification should be modified to say:

      For a modular application composed of modular JAR files and/or JMOD files, the runtime image contains the application's main module and the transitive closure of all of its dependencies. It will not include all the available service providers; if you want those to be bound then specify the --jlink-options option to the jpackage tool with a value including --bind-services option.

      2.) The --bind-services jpackage option will no longer be recognized and will produce an error.

      3.) The following will be removed from the jpackage help message:

      --bind-services
             Pass on --bind-services option to jlink
             (which will link in service provider modules and their dependences)
             This option is deprecated. Use "--jlink-options" option instead.

      4.) The man pages will be modified to remove the --bind-services option.

            herrick Andy Herrick (Inactive)
            kcr Kevin Rushforth
            Alexander Matveev, Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: