BuildDependenciesOnlyFileCollectionResolveContextTest.groovy

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Revert "Merge pull request #9840 from gradle/lptr/files/simplify-file-matchers""

This reverts commit 669ec8c0211ad7e36ec4a91921e2da5da8619bef.

    • -74
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 324 more files in changeset.
Revert "Merge pull request #9840 from gradle/lptr/files/simplify-file-matchers"

This reverts commit 72dc39d9784910196e7840ac35317bc46ef4c4a1, reversing

changes made to 69ffd7ea87b343cb6f0f03b947b7605a5bea02b1.

    • -0
    • +74
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 324 more files in changeset.
Rename :files project to :file-collections

    • -74
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 243 more files in changeset.
Rename :files project to :file-collections

    • -74
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 243 more files in changeset.
Rename :files project to :file-collections

    • -74
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 242 more files in changeset.
Unit test coverage for previous commits.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 6 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 18 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 18 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

    • -99
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 19 more files in changeset.
Simplify implementation of file collection build dependency visiting, by assuming that `TaskDependencyResolveContext` implementations honor this contract.

    • -33
    • +1
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 3 more files in changeset.
Rework task dependency inference so that `Provider` implementations use the same `TaskDependencyContainer` interface that most other things use to declare their producer task to the task resolution infrastructure, rather than having special knowledge sprinkled around various places.

Cleaned up a bunch of `Provider` and `Property` implementations so that more logic is reused rather than reimplemented.

    • -14
    • +31
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 30 more files in changeset.
Support propagation of the producer task for provider instances that are created using `Provider.map()`.

Now, when a provider represents a task or task output, whether mapped or not, that task is taken as the producer of the value and the mapping function is not called. Otherwise, the value of the provider is unpacked and resolved, as it previously was.

Rework the protocol by which providers communicate their build dependencies to consumers.

    • -7
    • +20
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 34 more files in changeset.
Move file collection APIs out of core (#6525)

This change breaks out code that directly relates to handling `FileCollection`s and their build dependencies (called `TaskDependency` at this time) into a separate subproject (`:files`). This is so that other modules can build on just this module instead of having to depend on the oversized `:core`.

As part of the change `Provider`s have been moved to `:base-services`. In a possible followup step `:base-services` could be split into a module that captures the very basic concepts of Gradle's data model: it's all about `DomainObjectCollection`s that can be configured via `Action`s, transformed via `Transformer`s, lazyness can be provided via `Provider`s and rich mutable data types can be created via `Property` objects.

Another addition to `:base-serivces` is the directed graph traversal algorithms used in many parts of Gradle.

    • -0
    • +175
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 443 more files in changeset.