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

Gradle: Allow javadoc and src tasks to be run without the need for -PBUILD_XXX flags

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • None
    • javafx
    • None

      It would be useful to allow "gradle src" or "gradle javadoc" to work without needing the "-PBUILD_JAVADOC=true" or "-DBUILD_SRC_ZIP=true" flag, respectively.

      Currently the "sdk" task unconditionally depends on the "javadoc" and "src" tasks. Those tasks are only enabled if the corresponding flag is set. If instead we changed the script such that the "javadoc" and "src" tasks were always enabled, but only added as dependencies of the "sdk" task when the corresponding flag is set, a user would be able to say "gradle javadoc" and it would do the expected thing.

            ddhill David Hill (Inactive)
            kcr Kevin Rushforth
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: