Class ProvideLibFilter
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@CacheableTask() public abstract class ProvideLibFilter extends DefaultTaskThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>baseDependencyprivate final Property<String>fileDependencyprivate final RegularFilePropertyoutputFileprivate final ConfigurableFileCollectionlibFilterFilesprivate final TaskOutputsInternaloutputsprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final TaskDependencyInternallifecycleDependenciesprivate BooleanisEnabledprivate BooleanimpliesSubProjectsprivate final TaskInputsInternalinputsprivate Booleanenabledprivate final TaskStateInternalstateprivate final TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
Constructor Summary
Constructors Constructor Description ProvideLibFilter(ProjectLayout projectLayout, ObjectFactory objectFactory)Creates a task that provides the base libraries filter file.
-
Method Summary
Modifier and Type Method Description final Property<String>getBaseDependency()final Property<String>getFileDependency()final RegularFilePropertygetOutputFile()final ConfigurableFileCollectiongetLibFilterFiles()The resolved lib filter file of the configured dependency. final UnitprovideBaseDependency(Provider<String> dependency)This methods provides the dependency of the base project to the task. final UnitprovideFileDependency(Provider<String> dependency)This methods provides the dependency of single libfilter file as a dependency to the task. final UnitprovideOutputFile(Provider<RegularFile> file)Provide the output file for the task. final UnitdownloadFile()Task execution method of this task. -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBaseDependency
@Optional()@Input() final Property<String> getBaseDependency()
-
getFileDependency
@Optional()@Input() final Property<String> getFileDependency()
-
getOutputFile
@OutputFile() final RegularFileProperty getOutputFile()
-
getLibFilterFiles
@InputFiles()@PathSensitive(value = PathSensitivity.NAME_ONLY) final ConfigurableFileCollection getLibFilterFiles()
The resolved lib filter file of the configured dependency.
The dependency is resolved by the plugin at configuration time through a lenient artifact view, so that the task neither accesses the project nor resolves a configuration during execution. The collection is empty if no dependency is configured or if it provides no lib filter artifact.
-
provideBaseDependency
final Unit provideBaseDependency(Provider<String> dependency)
This methods provides the dependency of the base project to the task. Only a module dependency is allowed.
- Parameters:
dependency- dependency of the base project.
-
provideFileDependency
final Unit provideFileDependency(Provider<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'.
- Parameters:
dependency- dependency of the file.
-
provideOutputFile
final Unit provideOutputFile(Provider<RegularFile> file)
Provide the output file for the task.
- Parameters:
file- regular file provider.
-
downloadFile
final Unit downloadFile()
Task execution method of this task. It downloads the property file and stores the result as output file.
-
-
-
-