# Package-level declarations

Types for defining and using build services.

#### Since

6.1

## Types

BuildService
Link copied to clipboard
interface BuildService<T : BuildServiceParameters?>
Represents a user provided "service" that is used by a Gradle build.
BuildServiceParameters
Link copied to clipboard
interface BuildServiceParameters
A set of parameters to be injected into a BuildService implementation.
BuildServiceRegistration
Link copied to clipboard
interface BuildServiceRegistration<T : BuildService<P>?, P : BuildServiceParameters?> : Named
Details of a build service.
BuildServiceRegistry
Link copied to clipboard
interface BuildServiceRegistry
A registry of build services.
BuildServiceSpec
Link copied to clipboard
interface BuildServiceSpec<P : BuildServiceParameters?>
A set of parameters that defines a service registration.
ServiceReference
Link copied to clipboard
@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
@Incubating
annotation class ServiceReference
Marks a task property as being a holder to a BuildService.