VariantAttributesRulesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Clean up IvyPublication and publish more information to ivy.xml metadata

This cleans up the implementation of `populateFromComponent()` and

introduces the following changes that publish information which

was lossy before:

- Artifacts are now added to all configurations they belong to and

not just the first found

- Dependencies are now added for all configurations they belong to,

with the corresponding mapping and version, and

not just for the first found

- For a Java library, this means the 'runtime' now represents the full

runtime variant of the library (before, only 'default' represented

that)

    • -2
    • +3
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 15 more files in changeset.
Clean up IvyPublication and publish more information to ivy.xml metadata

This cleans up the implementation of `populateFromComponent()` and

introduces the following changes that publish information which

was lossy before:

- Artifacts are now added to all configurations they belong to and

not just the first found

- Dependencies are now added for all configurations they belong to,

with the corresponding mapping and version, and

not just for the first found

- For a Java library, this means the 'runtime' now represents the full

runtime variant of the library (before, only 'default' represented

that)

    • -2
    • +3
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 14 more files in changeset.
Adjust test fixtures and test to ivy behavior changes

    • -4
    • +2
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 38 more files in changeset.
Fixes

    • -20
    • +22
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 29 more files in changeset.
Fixes

    • -20
    • +22
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 19 more files in changeset.
Fixes

    • -20
    • +22
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 31 more files in changeset.
Remove special casing of pure ivy in resolve tests

    • -24
    • +20
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 9 more files in changeset.
Remove special casing of pure ivy in resolve tests

    • -24
    • +20
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 11 more files in changeset.
Use ivy derivation rules in resolve tests

This allows us to get rid of some special casing in tests that

do not specifically test ivy-only behavior. This tests that common

variant aware dependency management scenarios work for ivy if used

in the recommended way.

    • -24
    • +20
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 12 more files in changeset.
Use ivy derivation rules in resolve tests

This allows us to get rid of some special casing in tests that

do not specifically test ivy-only behavior. This tests that common

variant aware dependency management scenarios work for ivy if used

in the recommended way.

    • -24
    • +20
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 12 more files in changeset.
Allow variant matching opt-in for ivy through component metadata rules

    • -8
    • +2
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 20 more files in changeset.
Allow variant matching opt-in for ivy through component metadata rules

    • -24
    • +20
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 20 more files in changeset.
Adjust tests and samples to new metadata sources defaults

    • -11
    • +11
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 95 more files in changeset.
Remove 'experimental' variant from dependency resolution tests

With the 'GRADLE_METADATA' feature preview gone, we now only have

two dimensions of variation to test:

(1) Ivy or Maven repository?

(2) Gradle metadata available - in addition to pom or ivy - or not?

If Gradle 6+ was used for publishing, Gradle metadata is most likely

available and the pom/ivy file contains the corresponding marker.

If an older Gradle version (or Maven/Ivy) was used for publishing,

Gradle metadata is not available and there is also no marker in the

other metadata file.

    • -11
    • +11
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 32 more files in changeset.
Remove 'experimental' variant from dependency resolution tests

With the 'GRADLE_METADATA' feature preview gone, we now only have

two dimensions of variation to test:

(1) Ivy or Maven repository?

(2) Gradle metadata available - in addition to pom or ivy - or not?

If Gradle 6+ was used for publishing, Gradle metadata is most likely

available and the pom/ivy file contains the corresponding marker.

If an older Gradle version (or Maven/Ivy) was used for publishing,

Gradle metadata is not available and there is also no marker in the

other metadata file.

    • -11
    • +11
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 32 more files in changeset.
Remove 'experimental' variant from dependency resolution tests

With the 'GRADLE_METADATA' feature preview gone, we now only have

two dimensions of variation to test:

(1) Ivy or Maven repository?

(2) Gradle metadata available - in addition to pom or ivy - or not?

If Gradle 6+ was used for publishing, Gradle metadata is most likely

available and the pom/ivy file contains the corresponding marker.

If an older Gradle version (or Maven/Ivy) was used for publishing,

Gradle metadata is not available and there is also no marker in the

other metadata file.

    • -11
    • +11
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 32 more files in changeset.
WIP

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

    • -1
    • +1
    ./VariantAttributesRulesIntegrationTest.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.

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

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

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

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

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

    • -0
    • +1
    ./VariantAttributesRulesIntegrationTest.groovy
  1. … 48 more files in changeset.