Getting thousands of Gradle deprecation failures related to aggregated deps.
There are multiple distinct artifact transformation chains of the same length that would satisfy this request. This behavior has been deprecated. This will fail with an error in Gradle 9.0. Remove one or more registered transforms, or add additional attributes to them to ensure only a single valid transformation chain exists.
Found multiple transformation chains that produce a variant of project :foo with requested attributes:
artifactType: aggregated-jar-for-hilt
com.android.build.api.attributes.AgpVersionAttr: 8.11.1
com.android.build.api.attributes.BuildTypeAttr: debug
org.gradle.category: library
org.gradle.jvm.environment: android
org.gradle.usage: java-runtime
org.jetbrains.kotlin.platform.type: androidJvm
1. From configuration :foo:debugRuntimeElements variant android-classes-jar:
Source attributes:
artifactType: android-classes-jar
com.android.build.api.attributes.AgpVersionAttr: 8.11.1
com.android.build.api.attributes.BuildTypeAttr: debug
com.android.build.gradle.internal.attributes.VariantAttr: debug
org.gradle.category: library
org.gradle.jvm.environment: android
org.gradle.libraryelements: jar
org.gradle.usage: java-runtime
org.jetbrains.kotlin.platform.type: androidJvm
Candidate transformation chain:
- IdentityTransform
- Converts from:
artifactType android-classes-jar
- Converts to:
artifactType android-classes
- CopyTransform
- Converts from:
artifactType android-classes
- Converts to:
artifactType jar-for-dagger
- AggregatedPackagesTransform
- Converts from:
artifactType jar-for-dagger
- Converts to:
artifactType aggregated-jar-for-hilt
2. From configuration :foo:debugRuntimeElements variant jar:
Source attributes:
artifactType: jar
com.android.build.api.attributes.AgpVersionAttr: 8.11.1
com.android.build.api.attributes.BuildTypeAttr: debug
com.android.build.gradle.internal.attributes.VariantAttr: debug
org.gradle.category: library
org.gradle.jvm.environment: android
org.gradle.libraryelements: jar
org.gradle.usage: java-runtime
org.jetbrains.kotlin.platform.type: androidJvm
Candidate transformation chain:
- UnzipTransform
- Converts from:
artifactType jar
- Converts to:
artifactType directory
- CopyTransform
- Converts from:
artifactType directory
- Converts to:
artifactType jar-for-dagger
- AggregatedPackagesTransform
- Converts from:
artifactType jar-for-dagger
- Converts to:
artifactType aggregated-jar-for-hilt
Getting thousands of Gradle deprecation failures related to aggregated deps.
Found multiple transformation chains that produce a variant of
project :foowith requested attributes:artifactType:aggregated-jar-for-hiltcom.android.build.api.attributes.AgpVersionAttr:8.11.1com.android.build.api.attributes.BuildTypeAttr:debugorg.gradle.category:libraryorg.gradle.jvm.environment:androidorg.gradle.usage:java-runtimeorg.jetbrains.kotlin.platform.type:androidJvm1. From configuration
:foo:debugRuntimeElementsvariantandroid-classes-jar:Source attributes:
artifactType:android-classes-jarcom.android.build.api.attributes.AgpVersionAttr:8.11.1com.android.build.api.attributes.BuildTypeAttr:debugcom.android.build.gradle.internal.attributes.VariantAttr:debugorg.gradle.category:libraryorg.gradle.jvm.environment:androidorg.gradle.libraryelements:jarorg.gradle.usage:java-runtimeorg.jetbrains.kotlin.platform.type:androidJvmCandidate transformation chain:
artifactTypeandroid-classes-jarartifactTypeandroid-classesartifactTypeandroid-classesartifactTypejar-for-daggerartifactTypejar-for-daggerartifactTypeaggregated-jar-for-hilt2. From configuration
:foo:debugRuntimeElementsvariantjar:Source attributes:
artifactType:jarcom.android.build.api.attributes.AgpVersionAttr:8.11.1com.android.build.api.attributes.BuildTypeAttr:debugcom.android.build.gradle.internal.attributes.VariantAttr:debugorg.gradle.category:libraryorg.gradle.jvm.environment:androidorg.gradle.libraryelements:jarorg.gradle.usage:java-runtimeorg.jetbrains.kotlin.platform.type:androidJvmCandidate transformation chain:
artifactTypejarartifactTypedirectoryartifactTypedirectoryartifactTypejar-for-daggerartifactTypejar-for-daggerartifactTypeaggregated-jar-for-hilt