as a plugin developer what is the recommended way of reading convention properties and setting the values to fields of classes that implement DefaultTask? In the past all my Task classes used to extend the internal class org.gradle.api.internal.ConventionTask and had to access fields using getter method. Extending ConventionTask has multiple drawbacks:
a) You can only access the values via getter methods which fields very clunky.
b) ConventionTask is an internal class which might be deprecated.
In the future I’d like to stay away from using ConventionTask and have my tasks implement DefaultTask. However, I am having trouble setting the fields with values that I read from my Convention. It pretty much boils down to the problems reported in this posting. I think plugin developers often times simply want to read convention properties when creating a task and set them as field values. Having to use convention mapping simply feels like more work than there should be.
From your point of view is there a way to get this working? I read there will be an extension mechanism for plugins with 1.0-milestone-5. Is there any kind of documentation on how this is going to work and how to use it?