https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

darkmoon_uk

08/15/2019, 10:33 AM
How do you specify the variant of a Kotlin/Multiplatform project dependency to depend on? When there are two similar JVM variants; it must be disambiguated/specified. Tried the form:
implementation(project(name="someProj", configuration="variantDefault"))
...where 'variant' is the name of the variant to use. This does not resolve correctly. Gradle attributes have their own complications. Is there an easier way I'm missing?
r

russhwolf

08/15/2019, 11:51 AM
d

darkmoon_uk

08/15/2019, 10:23 PM
@russhwolf Thank you! I missed that section; specifically how to add the attribute to other affected configurations. MPP resolution is now working! 🎉
👍 1
23 Views