can i specify a `project()` dependency from an old...
# multiplatform
j
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
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.