To register an artifact transform, use DependencyHandler.registerTransform(java.lang.Class, org.gradle.api.Action).
This allows you to register a TransformAction using TransformSpec.
If you want to create a new artifact transform action, have a look at TransformAction.
| Interface | Description |
|---|---|
| TransformAction<T extends TransformParameters> |
Interface for artifact transform actions.
|
| TransformOutputs |
The outputs of the artifact transform.
|
| TransformParameters |
Marker interface for parameter objects to
TransformActions. |
| TransformSpec<T extends TransformParameters> |
Base configuration for artifact transform registrations.
|
| VariantTransform | Deprecated.
Use
TransformSpec instead. |
| Class | Description |
|---|---|
| ArtifactTransform | Deprecated.
Use
TransformAction instead. |
| TransformParameters.None |
Used for
TransformActions without parameters. |
| Exception | Description |
|---|---|
| ArtifactTransformException | Deprecated. |
| VariantTransformConfigurationException |
An exception to report a problem during transformation execution.
|
| Annotation Type | Description |
|---|---|
| CacheableTransform |
Attaching this annotation to a
TransformAction type it indicates that the build cache should be used for artifact transforms of this type. |
| InputArtifact |
Attach this annotation to an abstract getter that should receive the input artifact for an artifact transform.
|
| InputArtifactDependencies |
Attach this annotation to an abstract getter that should receive the artifact dependencies of the
InputArtifact of an artifact transform. |