Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Replace `BuildDependenciesVisitor` with `TaskDependencyResolveContext` so that the same visitor type is used to visit the build dependencies of a configuration/variant/artifact as is used to visit the build dependencies of other things.

    • -0
    • +7
    ./AbstractTaskDependencyResolveContext.java
    • -1
    • +10
    ./TaskDependencyResolveContext.java
  1. … 25 more files in changeset.
Merge remote-tracking branch 'origin/release'

  1. … 4 more files in changeset.
Avoid locking the target project of project dependencies during task execution.

During work graph calculation, add an action that runs immediately after the producing task of an artifact completed that caclculates the dependency resolution metadata for that artifact. This happens before the consuming tasks are started, and so is available without locking when those tasks execute. Previously this calculation was done by consuming tasks, and they would need to lock the target project to do this.

This strategy works only for those tasks that declare that they will need these files (e.g. are declared as inputs in some form). For tasks that do not declare these inputs (possibly because there is no easy way to do so yet), the action is not added and the locking will still occur when the consuming task executes.

The implementation bolts a new concept onto the task nodes, as an increment towards making these actions real nodes in the graph that can be scheduled in the normal way.

    • -0
    • +10
    ./CachingTaskDependencyResolveContext.java
  1. … 23 more files in changeset.
Rename Transform -> Transformation

  1. … 36 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.

    • -0
    • +32
    ./AbstractTaskDependencyResolveContext.java
    • -7
    • +1
    ./CachingTaskDependencyResolveContext.java
  1. … 27 more files in changeset.
Replace some special cases that are handled by `DefaultTaskDependency` with types that implement `TaskDependencyContainer` instead.

  1. … 4 more files in changeset.
Fix deprecation messages in tests

  1. … 3 more files in changeset.
Fix deprecation messages

  1. … 1 more file 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.

    • -0
    • +7
    ./CachingTaskDependencyResolveContext.java
  1. … 32 more files in changeset.
Move task dependency implementation and resolution types from 'files' to 'modelCore' project.

    • -0
    • +44
    ./AbstractTaskDependency.java
    • -0
    • +121
    ./CachingTaskDependencyResolveContext.java
    • -0
    • +296
    ./DefaultTaskDependency.java
    • -0
    • +24
    ./RealizableTaskCollection.java
    • -0
    • +27
    ./TaskDependencyContainer.java
    • -0
    • +37
    ./TaskDependencyInternal.java
    • -0
    • +45
    ./TaskDependencyResolveContext.java
    • -0
    • +27
    ./TaskDependencyResolveException.java
    • -0
    • +24
    ./TaskReferenceInternal.java
    • -0
    • +53
    ./WorkDependencyResolver.java
  1. … 15 more files in changeset.