Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-269

Automatically set the convention mapping for compile, jar and other tasks

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.6

      Description

      When creating a new taks with e.g. createTask(type: Compile, ...) the convention mapping should be automatically set.

      Reason:

      • normally the standard settings of the convention object will be used with just minor variations, like including only some sources or directories. In this case we would have one line less to write (and the line is not obvious and quite ugly!)
      • even if all properties are set within the task, having the convention object defined by default does not matter
      • if someone wants to use another convention mapping he can still set it - maybe in a nicer way? Like "conventionMapping 'COMPILE'"?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adammurdoch Adam Murdoch
              Reporter:
              mvlcek Martin Vlcek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: