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 DefaultTask
                        

    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ProvideLibFilter(ProjectLayout projectLayout, ObjectFactory objectFactory) Creates a task that provides the base libraries filter file.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Property<String> getBaseDependency()
      final Property<String> getFileDependency()
      final RegularFileProperty getOutputFile()
      final ConfigurableFileCollection getLibFilterFiles() The resolved lib filter file of the configured dependency.
      final Unit provideBaseDependency(Provider<String> dependency) This methods provides the dependency of the base project to the task.
      final Unit provideFileDependency(Provider<String> dependency) This methods provides the dependency of single libfilter file as a dependency to the task.
      final Unit provideOutputFile(Provider<RegularFile> file) Provide the output file for the task.
      final Unit downloadFile() 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
    • Constructor Detail

      • ProvideLibFilter

        ProvideLibFilter(ProjectLayout projectLayout, ObjectFactory objectFactory)

        Creates a task that provides the base libraries filter file.

    • Method Detail

      • 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.