Slackbot
01/24/2023, 7:21 PMMike Cumings
01/24/2023, 7:23 PMimplementation("...").attributesSchema { ... }
API but this API seems pretty obtuse for matching a specific value and nothing I throw at it seems to have any effectMike Cumings
01/24/2023, 7:24 PMMike Cumings
01/24/2023, 7:24 PMMike Cumings
01/24/2023, 7:26 PMAttribute.of("net.devrieze.android", Boolean::class.javaObjectType)
to equal false
?Vampire
01/24/2023, 9:02 PMimplementation("...").attributesSchema { ... }
?
It should be dependencies.attributesSchema { ... ]
or probably dependencies { attributesSchema { ... } }
.
You need to register a custom attribute in the attribute schema and then you have to request it, either by setting the attribute on the configuration that is going to be resolved, or on the dependency directly.Mike Cumings
01/24/2023, 9:17 PMsetting the attribute on the ... dependency directly
? That was what I was attempting to do with implementation("...").attributesSchema { ... }
Mike Cumings
01/24/2023, 9:18 PMimplementation("...") { attributesSchema { ... } }
Vampire
01/24/2023, 9:26 PMVampire
01/24/2023, 9:27 PMVampire
01/24/2023, 9:27 PMMike Cumings
01/24/2023, 9:28 PMdependencies.attributeSchema { ... }
with the same result. I abandoned kotlin-dsl because it make the gradle/project kotlin version coupling issue far worse than without it (but that's a separate issue)Vampire
01/24/2023, 9:32 PMbecause it make the gradle/project kotlin version coupling issue far worseNot sure what you mean. For build logic the Kotlin version is fixedly given by the Gradle version you use. But in any way the project Kotlin version is completely independent of that.
Vampire
01/24/2023, 9:32 PMVampire
01/24/2023, 9:32 PMdependencies.attributeSchema
and ignored what I said multiple times already?Vampire
01/24/2023, 9:33 PMVampire
01/24/2023, 9:33 PMMike Cumings
01/24/2023, 9:34 PMdeclare that you request it on the configuration or on the concrete dependency
Vampire
01/24/2023, 9:34 PMVampire
01/24/2023, 9:35 PMimplementation("foo") { attributes { attribute(...) } }
, or similar on the configuration that is going to be resolvedMike Cumings
01/24/2023, 9:38 PMattributes
on DependencyHandlerScope
.Mike Cumings
01/24/2023, 9:39 PMVampire
01/24/2023, 9:40 PMattributes
on DependencyHandlerScope
?Mike Cumings
01/24/2023, 9:41 PMimplementation("foo") { this }
is a DependencyHandlerScope
and you suggested to use implementation("foo") { attributes { ... } }
Vampire
01/24/2023, 9:41 PMModuleDependency
Vampire
01/24/2023, 9:41 PMExternalModuleDependency
to be preciseMike Cumings
01/24/2023, 9:42 PMVampire
01/24/2023, 9:42 PMVampire
01/24/2023, 9:42 PMMike Cumings
01/24/2023, 9:42 PMVampire
01/24/2023, 9:42 PMVampire
01/24/2023, 9:42 PMMike Cumings
01/24/2023, 9:46 PMVampire
01/24/2023, 9:47 PMMike Cumings
01/24/2023, 9:48 PMVampire
01/24/2023, 9:51 PMMike Cumings
01/26/2023, 3:56 PMVampire
01/26/2023, 4:14 PM