# 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.
GradleService
Link copied to clipboard
@Incubating
interface GradleService
Marks a service that can be looked up via service.
ProjectService
Link copied to clipboard
@Incubating
interface ProjectService
Marks a service that can be looked up via service.
ServiceReference
Link copied to clipboard
@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
annotation class ServiceReference
Marks a task property as being a holder to a BuildService.
SettingsService
Link copied to clipboard
@Incubating
interface SettingsService
Marks a service that can be looked up via service.
TaskService
Link copied to clipboard
@Incubating
interface TaskService
Marks a service that can be looked up via service.