[GRADLE-269] Automatically set the convention mapping for compile, jar and other tasks Created: 22/Oct/08  Updated: 04/Jan/13  Resolved: 20/May/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.4
Fix Version/s: 0.6

Type: Improvement
Reporter: Martin Vlcek Assignee: Adam Murdoch
Resolution: Fixed Votes: 0

Issue Links:
dependent
dependent on GRADLE-439 Allow a listener to receive notificat... Resolved

 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'"?


 Comments   
Comment by Hans Dockter [ 17/Apr/09 ]

I guess this issue will be fixed with the current work you are doing for 0.6. Therefore I have changed 'fix for' to 0.6.

Generated at Wed Jun 30 11:25:53 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.