Class ArtifactTransform

java.lang.Object
org.gradle.api.artifacts.transform.ArtifactTransform

@Deprecated public abstract class ArtifactTransform extends Object
Deprecated.
Use TransformAction instead.
Base class for artifact transforms.

Implementations must provide a public constructor. The constructor may optionally accept parameters, in which case it must be annotated with Inject. The following parameters are available:

Since:
3.4
  • Constructor Details

    • ArtifactTransform

      public ArtifactTransform()
      Deprecated.
  • Method Details

    • getOutputDirectory

      public File getOutputDirectory()
      Deprecated.
      Returns the workspace location for this transform, which is the directory that the transform should write its output files to.
    • setOutputDirectory

      public void setOutputDirectory(File outputDirectory)
      Deprecated.
    • transform

      public abstract List<File> transform(File input)
      Deprecated.
      Transforms the given input artifact file or directory and returns the result.
      Parameters:
      input - The input file or directory.
      Returns:
      The output files or directories. Can return an empty list.