ResolvedArtifactsApiIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Replace use of archiveName with archiveFileName

    • -1
    • +1
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 21 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 64 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 56 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 60 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 63 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 61 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 61 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 64 more files in changeset.
Remove use of deprecated API

Remove use of deprecated APIs in PluginBuilder

Replace use of archiveName with archiveFileName

Avoid more deprecated APIs

    • -18
    • +18
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 64 more files in changeset.
Migrate more tests to using the new API

    • -6
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 10 more files in changeset.
Migrate more test to using the new API

    • -6
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 12 more files in changeset.
Migrate more test to using the new API

    • -6
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 12 more files in changeset.
WIP

    • -6
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 12 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
    • +8
    ./ResolvedArtifactsApiIntegrationTest.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
    • +8
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 32 more files in changeset.
Do not drop variant attributes in results based on maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

This is only affecting the attributes reported in the result. During

matching, which happens earlier, all attributes were already considered.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 17 more files in changeset.
Do not drop variant attributes in results based on maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

This is only affecting the attributes reported in the result. During

matching, which happens earlier, all attributes were already considered.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 17 more files in changeset.
Do not drop variant attributes in results based on maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

This is only affecting the attributes reported in the result. During

matching, which happens earlier, all attributes were already considered.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 17 more files in changeset.
Do not drop variant attributes in results based on maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

This is only affecting the attributes reported in the result. During

matching, which happens earlier, all attributes were already considered.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 17 more files in changeset.
Do not drop variant attributes for 'traditional' maven artifacts

FixedComponentArtifacts dropped the variant attributes (stored in

ConfigurationMetadata) for no clear reason. Because of this, the

attributes in the resolve result differed depending on whether the

variant was constructed from pom or GMM.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 27 more files in changeset.
Adjust tests and samples to new metadata sources defaults

    • -3
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 95 more files in changeset.
wip - fix more tests

    • -3
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 46 more files in changeset.
wip - fix more tests

    • -3
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 14 more files in changeset.
wip - fix more tests

    • -3
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 45 more files in changeset.
wip - fix more tests

    • -3
    • +9
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 46 more files in changeset.
Rework configuration / variant exception messages

* For ambiguity issues, other attributes are listed before compatible

attributes.

* For incompatibility issues, incompatible attributes are listed first,

followed by other attributes.

Issue #8747

    • -12
    • +20
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 19 more files in changeset.
Rework configuration / variant exception messages

* For ambiguity issues, other attributes are listed before compatible

attributes.

* For incompatibility issues, incompatible attributes are listed first,

followed by other attributes.

Issue #8747

    • -12
    • +20
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 19 more files in changeset.
Rework configuration / variant exception messages

* For ambiguity issues, other attributes are listed before compatible

attributes.

* For incompatibility issues, incompatible attributes are listed first,

followed by other attributes.

Issue #8747

    • -12
    • +20
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 19 more files in changeset.
Rework configuration / variant exception messages

* For ambiguity issues, other attributes are listed before compatible

attributes.

* For incompatibility issues, incompatible attributes are listed first,

followed by other attributes.

Issue #8747

    • -12
    • +20
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 15 more files in changeset.
Initial support for optional features

This commit introduces initial support for optional features, by

implementing a way for a dependency declaration (currently *only* in

the DSL) to request variants of the target component that provide one

or more capabilities.

Previously to this change, selection was (simplified) done like this:

1. find the target component

2. select the variant of the target component which matches the requested

attributes

Now, selection introduces another step:

1. find the target component

2. filter variants by eliminating those which do not provide the requested

capabilities

3. select the variant in this list which matches the requested attributes

Several changes had to be implemented:

First, component metadata rules calling `addCapability` will now return

a component which capabilities _include_ the default capability.

Second, attribute filtering is done in a secondary step, which means that

if there are no variant matching the requested capabilities, we will immediately

fail.

    • -2
    • +2
    ./ResolvedArtifactsApiIntegrationTest.groovy
  1. … 58 more files in changeset.