AbstractFileCollectionTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename file collection visitor type and visit method.

  1. … 33 more files in changeset.
Rename file collection visitor type and visit method.

  1. … 33 more files in changeset.
Rename file collection visitor type and visit method.

  1. … 33 more files in changeset.
Some refactoring of file collection visitor.

  1. … 19 more files in changeset.
Some refactoring of file collection visitor.

  1. … 19 more files in changeset.
Some refactoring of file collection visitor.

  1. … 19 more files in changeset.
Change file collection `visitLeafCollections()` so that visitor receives a 'source' object and `Iterable<File>` that describes a file collection, instead of a `FileCollection` instance.

Change visiting of the outputs of artifact transforms so that an empty collection is visited when its 'spec' is requested by the visitor. The 'source' object can be used to carry details about the output variant to the instant execution serializer.

  1. … 25 more files in changeset.
Change file collection `visitLeafCollections()` so that visitor receives a 'source' object and `Iterable<File>` that describes a file collection, instead of a `FileCollection` instance.

Change visiting of the outputs of artifact transforms so that an empty collection is visited when its 'spec' is requested by the visitor. The 'source' object can be used to carry details about the output variant to the instant execution serializer.

  1. … 25 more files in changeset.
Change file collection `visitLeafCollections()` so that visitor receives a 'source' object and `Iterable<File>` that describes a file collection, instead of a `FileCollection` instance.

Change visiting of the outputs of artifact transforms so that an empty collection is visited when its 'spec' is requested by the visitor. The 'source' object can be used to carry details about the output variant to the instant execution serializer.

  1. … 25 more files in changeset.
Change file collection `visitLeafCollections()` so that visitor receives a 'source' object and `Iterable<File>` that describes a file collection, instead of a `FileCollection` instance.

Change visiting of the outputs of artifact transforms so that an empty collection is visited when its 'spec' is requested by the visitor. The 'source' object can be used to carry details about the output variant to the instant execution serializer.

  1. … 25 more files in changeset.
Change file collection `visitLeafCollections()` so that visitor receives a 'source' object and `Iterable<File>` that describes a file collection, instead of a `FileCollection` instance.

Change visiting of the outputs of artifact transforms so that an empty collection is visited when its 'spec' is requested by the visitor. The 'source' object can be used to carry details about the output variant to the instant execution serializer.

  1. … 25 more files in changeset.
Rework visiting a `Configuration` so that its contents are treated as a sequence of collections, rather than a single monolithic collection of files. This will allow visitors such as continuous build or instant execution some finer-grained visibility into the contents of the `Configuration`.

In this commit, the collections do not carry any useful information and the granularity is per artifact, which is too fine-grained. Later commits will address this.

  1. … 27 more files in changeset.
Rework visiting a `Configuration` so that its contents are treated as a sequence of collections, rather than a single monolithic collection of files. This will allow visitors such as continuous build or instant execution some finer-grained visibility into the contents of the `Configuration`.

In this commit, the collections do not carry any useful information and the granularity is per artifact, which is too fine-grained. Later commits will address this.

  1. … 27 more files in changeset.
Rework visiting a `Configuration` so that its contents are treated as a sequence of collections, rather than a single monolithic collection of files. This will allow visitors such as continuous build or instant execution some finer-grained visibility into the contents of the `Configuration`.

In this commit, the collections do not carry any useful information and the granularity is per artifact, which is too fine-grained. Later commits will address this.

  1. … 27 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

  1. … 19 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

  1. … 19 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

  1. … 19 more files in changeset.
Allow a `FileCollection` visitor to skip visiting the output of artifact transforms, and use this when serializing file collections to the instant execution cache.

This is only intended to be a basic step towards allow visitors better control over what to visit and in what form to visit. In this step, the API is specific to artifact transforms but will be made more general in later changes.

    • -1
    • +14
    ./AbstractFileCollectionTest.groovy
  1. … 22 more files in changeset.
Allow a `FileCollection` visitor to skip visiting the output of artifact transforms, and use this when serializing file collections to the instant execution cache.

This is only intended to be a basic step towards allow visitors better control over what to visit and in what form to visit. In this step, the API is specific to artifact transforms but will be made more general in later changes.

    • -1
    • +14
    ./AbstractFileCollectionTest.groovy
  1. … 22 more files in changeset.
Change `FileCollection` implementations so that they all expose their task dependencies via `TaskDependencyContainer` rather than a mix of `Buildable` and `TaskDependencyContainer`.

  1. … 15 more files in changeset.
Change `FileCollection` implementations so that they all expose their task dependencies via `TaskDependencyContainer` rather than a mix of `Buildable` and `TaskDependencyContainer`.

  1. … 15 more files in changeset.
Change `FileCollection` implementations so that they all expose their task dependencies via `TaskDependencyContainer` rather than a mix of `Buildable` and `TaskDependencyContainer`.

  1. … 15 more files in changeset.
Change `FileCollection` implementations so that they all expose their task dependencies via `TaskDependencyContainer` rather than a mix of `Buildable` and `TaskDependencyContainer`.

  1. … 15 more files in changeset.
Unit test coverage for `FileCollection.elements`

    • -41
    • +12
    ./AbstractFileCollectionTest.groovy
  1. … 3 more files in changeset.
Add `FileCollection.getElements()`, which returns a view of the collection elements as a `Provider<Set<FileSystemLocation>>`. This can then be used, for example, as an input to a `Property`.

    • -41
    • +12
    ./AbstractFileCollectionTest.groovy
  1. … 7 more files in changeset.
Add `FileCollection.getElements()`, which returns a view of the collection elements as a `Provider<Set<FileSystemLocation>>`. This can then be used, for example, as an input to a `Property`.

    • -41
    • +12
    ./AbstractFileCollectionTest.groovy
  1. … 7 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

  1. … 162 more files in changeset.
Use 'implementation' dependencies everywhere

  1. … 283 more files in changeset.
Use 'implementation' dependencies everywhere

  1. … 286 more files in changeset.
Use 'implementation' dependencies everywhere

  1. … 284 more files in changeset.