Service Reference
Marks a task property as being a holder to a BuildService.
When you annotate a shared build service property with this annotation, there is no need to explicitly declare the association between the task and the service; also, if you provide a service name to the annotation, and a shared build service is registered with that name, it will be automatically assigned to the property when the task is created.
It is an error to apply this annotation to a property whose type is not a subtype of BuildService.
Since
8.0