Jonathing
10/04/2025, 7:18 PMconfigurations.compileClasspath.dependencySubstitutions {
substitute module('org.example:examplelib') using variant(module('org.example:examplelib')) {
attributes { attribute(MyAttribute.ATTR_1, true) }
}
substitute module('org.example:examplelib') using variant(module('org.example:examplelib')) {
attributes { attribute(MyAttribute.ATTR_2, true) }
}
}
Would the resolver try to select the dependency in a way where both ATTR_1 and ATTR_2 are true?
(I can obviously test it myself but am just checking to see if anyone knew the answer to this before I did some experiments)Jonathing
10/04/2025, 8:47 PM