DefaultModuleComponentArtifactIdentifierTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Align implementations of artifact identifier display names

DefaultModuleComponentArtifactIdentifier now behaves similar as

ComponentFileArtifactIdentifier (showing the full actual file name).

This means that the artifact name used during reporting now

contains the version at the usual position in the file name.

This way it shows the actual file name for artifacts originating

from pom-only maven repositories (except snapshots, which show the

SNAPSHOT placeholder) and ivy repositories with default pattern.

The motivation for this alignment is to get the same representation for

the same file, independent of whether it was sourced from traditional

or Gradle module metadata.

    • -8
    • +32
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 32 more files in changeset.
Align implementations of artifact identifier display names

DefaultModuleComponentArtifactIdentifier now behaves similar as

ComponentFileArtifactIdentifier (showing the full actual file name).

This means that the artifact name used during reporting now

contains the version at the usual position in the file name.

This way it shows the actual file name for artifacts originating

from pom-only maven repositories (except snapshots, which show the

SNAPSHOT placeholder) and ivy repositories with default pattern.

The motivation for this alignment is to get the same representation for

the same file, independent of whether it was sourced from traditional

or Gradle module metadata.

    • -8
    • +32
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 32 more files in changeset.
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
    • +5
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 164 more files in changeset.
Changed artifact -> file file store to use `ModuleComponentArtifactIdentifier` to refer to an artifact, consistent with the cache that holds the artifact's metadata.

    • -0
    • +21
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 16 more files in changeset.
Set classifier directly rather than via attributes map

Because we are no long storing a map of attributes, this bumps the

module-descriptor cache layout version.

    • -12
    • +12
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 9 more files in changeset.
Renamed a few dep management types to replace 'ModuleVersion' with 'ModuleComponent'

    • -0
    • +66
    ./DefaultModuleComponentArtifactIdentifierTest.groovy
  1. … 116 more files in changeset.