public class ProvideLibFilter
This task download a text file with all 3rd party libs in a base projects from the configured dependencies. This files will be excluded from the calculated dependencies.
@Inject
public ProvideLibFilter(@NotNull
org.gradle.api.file.ProjectLayout projectLayout,
@NotNull
org.gradle.api.model.ObjectFactory objectFactory)
Creates a task that provides the base libraries filter file.
@Optional @Input @NotNull public org.gradle.api.provider.Property<java.lang.String> getBaseDependency()
public void provideBaseDependency(@NotNull
org.gradle.api.provider.Provider<java.lang.String> dependency)
This methods provides the dependency of the base project to the task. Only a module dependency is allowed.
dependency - dependency of the base project.@Optional @Input @NotNull public org.gradle.api.provider.Property<java.lang.String> getFileDependency()
public void provideFileDependency(@NotNull
org.gradle.api.provider.Provider<java.lang.String> dependency)
This methods provides the dependency of single libfilter file as a dependency to the task. Only a module dependency is allowed. Type and extension is txt. The classifier is 'libs'.
dependency - dependency of the file.@OutputFile @NotNull public org.gradle.api.file.RegularFileProperty getOutputFile()
public void provideOutputFile(@NotNull
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> file)
Provide the output file for the task.
file - regular file provider.public void downloadFile()
Task execution method of this task. It downloads the property file and stores the result as output file.