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

jw

09/20/2018, 2:44 AM
can i specify a
project()
dependency from an old platform module to a new multiplatform and select which variant I want it to resolve? this will allow me to incrementally migrate rather than doing everything at once.
h

h0tk3y

09/20/2018, 1:38 PM
I believe you can specify a project dependency with an explicit configuration (
project(path: '...', configuration: '...')
), though that is not yet possible in the new dependencies DSL (https://youtrack.jetbrains.com/issue/KT-26663), so you can try to specify it in the Gradle's plain dependencies, as said in the issue description.
Besides, you can do that by specifying a custom attribute in the output configuration of one project's target and the same attribute in the relevant input configurations of another project.
2 Views