Utilities to deal with Gradle extensions and project extensions
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
addExecProjectExtension(String name, Project project, ExecSpecInstantiator<? extends AbstractToolExecSpec> instantiator)Adds a project extension so that specific tools can be execute in a similar manner to Project.exec. |
|
static void |
bindDependencyHandlerService(Project project, String serviceName, Object service)Binds a new extension handler on to the project dependency handler. |
|
static void |
bindDependencyHandlerService(Project project, String serviceName, Class service)Binds a new extension handler on to the project dependency handler. |
|
static void |
bindRepositoryHandlerService(Project project, String serviceName, Object service)Binds a new extension handler on to the project repository handler. |
|
static void |
bindRepositoryHandlerService(Project project, String serviceName, Class service)Binds a new extension handler on to the project repository handler. |
|
static void |
bindService(Object dslObject, String serviceName, Object service)Binds a service object to the extensions object on an existing Gradle DSL Object |
Adds a project extension so that specific tools can be execute in a similar manner to Project.exec.
name - Name of extension.project - Project to attach to.instantiator - Instantiator to use to create new execution specifications.Binds a new extension handler on to the project dependency handler.
project - Project that holds the dependency handler.serviceName - Name of service to be bound to dependency handler.service - Object providing the service.Binds a new extension handler on to the project dependency handler.
project - Project that holds the dependency handler.serviceName - Name of service to be bound to dependency handler.service - Class type providing the service. The class requires a constructor which takes a
Project as parameter.Binds a new extension handler on to the project repository handler.
project - Project that holds the repository handler.serviceName - Name of service to be bound to repository handler.service - Object providing the service.Binds a new extension handler on to the project repository handler.
project - Project that holds the repository handler.serviceName - Name of service to be bound to repository handler.service - Class type providing the service. The vclass requires a constructor which takes a Project
as parameter.Binds a service object to the extensions object on an existing Gradle DSL Object
dslObject - Gradle DSL object to bind to. (Must implement ExtensionAware).serviceName - Name of serviceservice - Object delivering the service