Is there an official best practice around setting ...
# community-support
j
Is there an official best practice around setting attributes on configurations? I am seeing a lot of configurations in the ecosystem which get created with no attributes which causes ambiguity errors during variant selection
a
m
Even GitHub doesn't want to look at that issue 🙈
🤣 1
The whole thing is super fragile IMO. It's really hard to get predictable results because of all the inputs that go into the algorithm
1
And yea the lack of strict recommendation do not help
There is this as a community guide: github.com/liutikas/gmm-wiki
p
Also, you set attributes on resolvable and consumable configurations only. Setting attributes on a dependency scope configuration have no effect but “Gradle does not warn you”.
1
t
One such best practice has been added to the 9.7.0 docs: docs.gradle.org/current/userguide/best_practices_dependencies.html#…
🎉 1