DependenciesAttributesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Module test fixture: add 'category' attribute to api/runtime variants

This reflects the default variant attributes of a published

java component.

    • -25
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 13 more files in changeset.
Module test fixture: add 'category' attribute to api/runtime variants

This reflects the default variant attributes of a published

java component.

    • -25
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 13 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.

    • -25
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 27 more files in changeset.
WIP

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryelements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryElements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryelements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryElements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryElements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryelements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryElements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Rename format attribute and clean up values

Attribute is now org.gradle.libraryelements and only applied

to variants having the org.gradle.category at library.

This means that values related to platforms or document in the

former format attribute are removed.

    • -29
    • +29
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 46 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 29 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 55 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 55 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 29 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 42 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 55 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 56 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 56 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 55 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 56 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 48 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 56 more files in changeset.
Remove utilisation of *-jars usage values

    • -29
    • +33
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 56 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
    ./DependenciesAttributesIntegrationTest.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
    ./DependenciesAttributesIntegrationTest.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
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 19 more files in changeset.
Fix selection of target configuration with Ivy+constraints

This commit fixes an edge case when a dependency doesn't

use variant awareness, but rather an explicit target

configuration. In particular in the case of Ivy, the fact

of adding a constraint made the build fail with an error

stating that no matching configuration could be selected,

with the list of configurations and their attributes, but

no required attribute.

This case happened when the target module didn't provide

a "default" configuration.

Now we avoid selecting a configuration for constraint edges,

unless they are well known cases (virtual platforms). This

should have a positive impact on performance too.

    • -2
    • +1
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 4 more files in changeset.
Fix selection of target configuration with Ivy+constraints

This commit fixes an edge case when a dependency doesn't

use variant awareness, but rather an explicit target

configuration. In particular in the case of Ivy, the fact

of adding a constraint made the build fail with an error

stating that no matching configuration could be selected,

with the list of configurations and their attributes, but

no required attribute.

This case happened when the target module didn't provide

a "default" configuration.

Now we avoid selecting a configuration for constraint edges,

unless they are well known cases (virtual platforms). This

should have a positive impact on performance too.

    • -2
    • +1
    ./DependenciesAttributesIntegrationTest.groovy
  1. … 4 more files in changeset.