For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

usesService

open fun usesService(service: Provider<out BuildService<out Any>>)(source)

Registers a BuildService that is used by this task so its constraint on parallel execution can be honored.

This is not necessary for task properties declared as org.gradle.api.services.ServiceReferences.

Since

6.1

Parameters

service

The service provider.

See also