UnionFileCollectionTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixes for previous commit.

  1. … 4 more files in changeset.
Fixes for previous commit.

  1. … 4 more files in changeset.
Fixes for previous commit.

  1. … 13 more files in changeset.
Fixes for previous commit.

  1. … 13 more files in changeset.
Treat the artifacts produced for a local file dependency and those produced for other kinds of dependencies more similarly, when visiting the result.

Specifically, merge `ArtifactVisitor.visitFile()` into `ArtifactVisitor.visitArtifact()`, so that now all files/artifacts that participate in the resolution result are represented as a `ResolvableArtifact`.

  1. … 34 more files in changeset.
Treat the artifacts produced for a local file dependency and those produced for other kinds of dependencies more similarly, when visiting the result.

Specifically, merge `ArtifactVisitor.visitFile()` into `ArtifactVisitor.visitArtifact()`, so that now all files/artifacts that participate in the resolution result are represented as a `ResolvableArtifact`.

  1. … 34 more files in changeset.
Favor using FileCollection.iterator() over FileCollection.getFiles()

In some cases it's cheaper to create the iterator than a full-blown Set.

    • -27
    • +10
    ./UnionFileCollectionTest.groovy
  1. … 28 more files in changeset.
Integrate review feedback

  1. … 5 more files in changeset.
Deprecate FileCollection.add()

The method was never really working as expected, as in most cases it would throw UOE.

This also fixes a bug with PmdExtension.ruleSetFiles() always throwing the aforementioned UOE exception.

  1. … 8 more files in changeset.
Some unit test coverage for handling of task dependencies for various FileCollection implementations.

    • -0
    • +90
    ./UnionFileCollectionTest.groovy
  1. … 3 more files in changeset.