Slackbot
01/18/2023, 12:16 PMno
01/18/2023, 1:56 PMoutgoingVariants
task?Nicola Corti
01/18/2023, 3:39 PMNicola Corti
01/18/2023, 3:40 PMcom.android.build.api.attributes.BuildTypeAttr
set to release
but only for a given library (i.e. I don’t want to apply this for the whole implementation
configuration)Satyarth Sampath
01/18/2023, 4:30 PMimplementation(libs.foo) {
attributes {
attribute(BuildTypeAttr.ATTRIBUTE, project.objects.named(BuildTypeAttr::class.java, "release"))
}
}
I don't remember the exact syntax here, but I had tried this out a while back to see if it was possible and remember that this had worked (based on the output of dependencyInsight)Nicola Corti
01/18/2023, 6:13 PMJendrik Johannes
01/18/2023, 6:46 PMconfiguration: ...
notation is kind of outdated and might be deprecated soon (I assume...). Doing something like @Satyarth Sampath suggest (using attributes { ... }
) would be the "correct" way to do it nowadays.Nicola Corti
01/19/2023, 6:29 PM