This message was deleted.
# dependency-management
s
This message was deleted.
m
I'm trying to transform a
.aar
into another
.aar
(with additional attributes) but feels like the new attribute is ignored
I'm guessing because if the incoming artifact doesn't say anything about the new attribute it's considered a match? Does that make any sense?
l
A missing attribute is indeed always considered compatible with a requested one. What we do in the Gradle build is make sure to set the attribute based on the extension. See https://github.com/gradle/gradle/blob/65e75c38bb905aaf052b083995fcfc4948e789c4/build-logic/basics/src/main/kotlin/gradlebuild.minify.gradle.kts#L54-L56
m
Thanks ! This is what I ended up doing. Feels a bit weird that
"jar"
artifact type was automatically created by the java plugin but
"aar"
was not created by the Android plugin. I guess that's an issue for AGP. Thanks for following up!