JvmLibraryArtifactResolveTestFixture.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Normalize `ModuleIdentifier`

This commit reworks the `ComponentModuleIdentifier`/`ComponentModuleSelector`/`ModuleVersionSelector`

classes to use `ModuleIdentifier` under the hood, instead of storing denormalized strings. This has

the advantage that we can reduce the use of the module identifier factory, which is called very

often during dependency resolution. Sharing instances reduces the need for conversions, and makes

comparisons faster.

    • -4
    • +6
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 164 more files in changeset.
Fix tests for changed display name for snapshot id

    • -0
    • +6
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 2 more files in changeset.
Added `ArtifactResult.getId()` which returns an identifier for the artifact. This will allow the artifact to be correlated with the components in the dependency graph result, if required.

For artifacts returned by `Configuration.getIncoming().getArtifacts()` the id is currently a placeholder so cannot actually be used for this purpose. The dependency graph result also does not currently include all components.

    • -1
    • +5
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 6 more files in changeset.
Use doLast instead of left shift operator

Made this change in preparation for deprecating the left shift operator.

+review REVIEW-6236

    • -42
    • +46
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 163 more files in changeset.
Use ResourceException instead of IOException when retrieving a resource.

    • -64
    • +55
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 21 more files in changeset.
Renamed a few dep management types to replace 'ModuleVersion' with 'ModuleComponent'

    • -3
    • +3
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 116 more files in changeset.
Moved some exception and result types out of org.gradle.api.internal.artifacts into org.gradle.internal.resolve

    • -2
    • +2
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 109 more files in changeset.
Moved some meta-data types out of org.gradle.api.internal.artifacts to org.gradle.internal.component, and split up into base, local and external types.

    • -2
    • +2
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 307 more files in changeset.
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -0
    • +222
    ./JvmLibraryArtifactResolveTestFixture.groovy
  1. … 1384 more files in changeset.