TaskDependencyInferenceIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added `getLocationOnly()` to file system properties, to provide lazy access to just the location of the file system element, rather than both the location and the content of the file system element.

This can be used when mapping the location of a task output to produce an input to some other task, without implying a dependency on the producing task. For example, an IDE project file generation task may need to know where some output will end up (so need to know its location) but does not use the content of the output.

    • -0
    • +40
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 9 more files in changeset.
Added `getLocationOnly()` to file system properties, to provide lazy access to just the location of the file system element, rather than both the location and the content of the file system element.

This can be used when mapping the location of a task output to produce an input to some other task, without implying a dependency on the producing task. For example, an IDE project file generation task may need to know where some output will end up (so need to know its location) but does not use the content of the output.

    • -0
    • +40
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 9 more files in changeset.
Added `getLocationOnly()` to file system properties, to provide lazy access to just the location of the file system element, rather than both the location and the content of the file system element.

This can be used when mapping the location of a task output to produce an input to some other task, without implying a dependency on the producing task. For example, an IDE project file generation task may need to know where some output will end up (so need to know its location) but does not use the content of the output.

    • -0
    • +40
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 9 more files in changeset.
Added `getLocationOnly()` to file system properties, to provide lazy access to just the location of the file system element, rather than both the location and the content of the file system element.

This can be used when mapping the location of a task output to produce an input to some other task, without implying a dependency on the producing task. For example, an IDE project file generation task may need to know where some output will end up (so need to know its location) but does not use the content of the output.

    • -0
    • +40
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 9 more files in changeset.
Add some test coverage.

    • -1
    • +25
    ./TaskDependencyInferenceIntegrationTest.groovy
WIP

    • -19
    • +105
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 11 more files in changeset.
WIP

    • -19
    • +105
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 11 more files in changeset.
WIP

    • -19
    • +105
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 11 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -79
    • +44
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 15 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -79
    • +44
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 15 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -79
    • +44
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 15 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -99
    • +174
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 28 more files in changeset.
Avoid querying each task input property in order to check whether it may have task dependencies. Instead, do this only for `Provider` properties.

Move some test utility methods out of the artifact transform tests into a more general place, and reuse in some of the task dependency inference tests.

    • -103
    • +32
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 8 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

    • -0
    • +36
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 3 more files in changeset.
Fix task dependency inference when a mapped task output file `Property` is used as input to an `@Input` on another task.

    • -0
    • +36
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 3 more files in changeset.
Change `ObjectFactory` to create collection and map properties whose initial value is an empty collection or map, and add a `convention()` method for collection properties. The "convention" for a property is the value to use when none has been explicitly specified for the property. This changes adds this for collection properties for now. It will be added for all lazy types later.

    • -1
    • +1
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 30 more files in changeset.
Ensure that exceptions thrown by various build event actions and listeners are reported on the console and cause the build to fail.

Previously, failures thrown by `BuildListener`, `TaskExecutionGraphListener` and `ProjectEvaluationListener` listeners and also by `Action` instances passed to `taskGraph.whenReady()` would be ignored.

    • -3
    • +20
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 4 more files in changeset.
Add more test coverage for task dependency inference through collection properties.

    • -0
    • +29
    ./TaskDependencyInferenceIntegrationTest.groovy
Fix the collection property implementations so that they track the producer tasks of each of the elements of the collection.

This allows, for example, these types to be used to model buildable collections of files or directories or to represent task inputs.

    • -0
    • +22
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 7 more files in changeset.
Change the provider returned frmo `flatMap()` so that it uses the producer task details from the result of the transformation, and can be used as a task input.

    • -0
    • +62
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 1 more file 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.

    • -12
    • +90
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 30 more files in changeset.
Fix some consistency issues in task dependency inference for various kinds of providers that do not represent a task output.

    • -9
    • +31
    ./TaskDependencyInferenceIntegrationTest.groovy
  1. … 2 more files in changeset.