This message was deleted.
# plugin-development
s
This message was deleted.
v
while this works, it results in deprecation warnings about undeclared use of a build service, due to the service being hidden behind a provider
I don't think that it is due to the service being hidden behind a provider. Even a direct property for the build service wouldn't help. All tasks that use the service must declare that with
usesService
. In the past this was optional, but now it becomes mandatory and thus you get the deprecation warning.
c
agreed. I’ve switched to using a direct property (it still triggers when behind a Provider), and added the
usesServices
broadly.
hiding the build service behind a provider is questionable - it isn’t evident from looking at the code which tasks use which services.