Builder

public final class Builder

A builder for GradleTask.

NOTE: unlike most classes following the Builder pattern, this one provides applyNowTo method instead of build(..). This is done to add some additional semantics to such an irreversible action like this.

Functions

Link copied to clipboard
States that the task dependencies will be added to the task later.
Link copied to clipboard
public GradleTask applyNowTo(Project project)
Builds an instance of GradleTask and inserts it to the project build lifecycle according to the "before" and "after" tasks specified in the builder.
Link copied to clipboard
Inserts tasks which will precede the new one.
Link copied to clipboard
Specify a task which will precede the new one.
Link copied to clipboard
Specify a task which will follow the new one.
Link copied to clipboard
public GradleTask.Builder withInputFiles(FileCollection inputs)
Adds the files and/or directories to the input file set for the task being built.
Link copied to clipboard
Adds a task input property.
Link copied to clipboard
public GradleTask.Builder withOutputFiles(FileCollection outputs)
Adds the files and/or directories to the output file set for the task being built.