DefaultResolvedDependencySpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove an unused field from `DefaultResolvedDependency`.

    • -1
    • +1
    ./DefaultResolvedDependencySpec.groovy
  1. … 5 more files in changeset.
Reorganise the rich build operation details/results type to further decouple from producer side semantics.

    • -1
    • +1
    ./DefaultResolvedDependencySpec.groovy
  1. … 82 more files in changeset.
Changed the contract of `ResolvedArtifactSet` so that it can only be visited asynchronously, merging several operations (snapshot, prepare, visit) into a single method.

    • -2
    • +1
    ./DefaultResolvedDependencySpec.groovy
  1. … 16 more files in changeset.
Moved parallel artifact resolution up so that it is applied as a single batch across all artifacts, regardless of type, and is applied regardless of which query API is being used to perform the resolution.

Previously there were issues with inconsistency, for example artifact transforms for all local file dependency artifacts were resolved in parallel and then resolved all other artifacts. Or parallel resolution did not happen when triggered using some of the public APIs.

    • -1
    • +2
    ./DefaultResolvedDependencySpec.groovy
  1. … 17 more files in changeset.
Unify BuildOperationExecutor and BuildOperationProcessor APIs

This introduces the following `BuildOperationExecutor`

interface (as outlined in gradle/gradle#1676):

void run(RunnableBuildOperation buildOperation);

<T> T call(CallableBuildOperation<T> buildOperation);

<O extends RunnableBuildOperation> void runAll(

Action<BuildOperationQueue<O>> schedulingAction);

<O extends BuildOperation> void runAll(

BuildOperationWorker<O> worker,

Action<BuildOperationQueue<O>> schedulingAction);

To accomplish this, the following changes were performed:

- Various representation of build operations have been merged into

1) BuildOperation (with sub-interfaces)

-> declare and describe a build operation

2) BuildOperationDescriptor (BuildOperationDescriptor.Builder)

-> describe a build operation

3) BuildOperationState

-> represents a running build operation, with run state, start time,

parent relationship information, and description

- The DefaultBuildOperationExecutor and DefaultBuildOperationProcessor

implementations have been merged in DefaultBuildOperationExecutor,

which is now build session scoped.

    • -1
    • +2
    ./DefaultResolvedDependencySpec.groovy
  1. … 180 more files in changeset.
Remove ResolvedVariant.getArtifacts()

- Replaced ResolvedVariant.getArtifacts() with inline visit() and prepare()

- Inlined a bunch of `ResolvedArtifactSet` impls into `ResolvedVariant` impls

    • -3
    • +2
    ./DefaultResolvedDependencySpec.groovy
  1. … 14 more files in changeset.
Added variant attributes to `ResolvedArtifactResult`

- `ResolvedVariantResult` provides attributes for selected variant

- Currently do not provide variant attributes for file dependencies

    • -2
    • +3
    ./DefaultResolvedDependencySpec.groovy
  1. … 17 more files in changeset.
Use `ResolvedArtifactSet` abstraction rather than sets of stuff in a few more places during artifact/file calculation.

    • -10
    • +15
    ./DefaultResolvedDependencySpec.groovy
  1. … 17 more files in changeset.
when visiting the files/artifacts of a configuration, lookup the files for a file dependency using the `long` id for the graph node rather than the `ResolvedConfigurationIdentifier` for the node. This is a little more efficient, means that a node does not need to have a `ResolvedConfigurationIdentifier`, and is closer to how other artifacts are attached to the nodes.

    • -1
    • +1
    ./DefaultResolvedDependencySpec.groovy
  1. … 13 more files in changeset.
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -0
    • +92
    ./DefaultResolvedDependencySpec.groovy
  1. … 1384 more files in changeset.