Interface AccessTransformersContainer
- All Known Subinterfaces:
AccessTransformersExtension
public sealed interface AccessTransformersContainer
permits AccessTransformersExtension (not exhaustive)
Represents a container of dependencies that will be access transformed.
Containers are created with AccessTransformersExtension.register(Action). Dependencies can be registered to it
inside their configuring closures using configure(Dependency).
- See Also:
- API Note:
- This interface is effectively sealed and must not be extended.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceWhen initially registering an AccessTransformers container, the consumer should define key information regarding how AccessTransformers will be used. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidconfigure(org.gradle.api.artifacts.Dependency dependency) Configures the given dependency to use this AccessTransformers container.voidconfigure(org.gradle.api.artifacts.Dependency dependency, org.gradle.api.Action<? super AccessTransformersConfiguration> action) Configures the given dependency to use this AccessTransformers container.Gets the access transformer options.default voidoptions(org.gradle.api.Action<? super AccessTransformersContainer.Options> action) Configures the access transformer options.static AccessTransformersContainerregister(org.gradle.api.Project project, org.gradle.api.Action<? super AccessTransformersContainer.Options> options) Registers a new container using the given attribute and options.
-
Method Details
-
register
static AccessTransformersContainer register(org.gradle.api.Project project, org.gradle.api.Action<? super AccessTransformersContainer.Options> options) Registers a new container using the given attribute and options.- Parameters:
project- The project to make the container for]options- The options to apply- Returns:
- The registered container
- See Also:
-
getOptions
AccessTransformersContainer.Options getOptions()Gets the access transformer options.- Returns:
- The options
- See Also:
-
options
Configures the access transformer options.- Parameters:
action- The configuring action- See Also:
-
configure
default void configure(org.gradle.api.artifacts.Dependency dependency) Configures the given dependency to use this AccessTransformers container.- Parameters:
dependency- The dependency to configure AccessTransformers for
-
configure
void configure(org.gradle.api.artifacts.Dependency dependency, org.gradle.api.Action<? super AccessTransformersConfiguration> action) Configures the given dependency to use this AccessTransformers container.- Parameters:
dependency- The dependency to configure AccessTransformers foraction- A configuring action to modify dependency-level AccessTransformer options
-