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

marcinmoskala

07/06/2018, 3:20 PM
I have in my multiplatform project both
common
and
common-client
. I added
common-native
and I wanted to add
common-client-native
. The other one works if i make it as expected by both common modules:
Copy code
dependencies {
    expectedBy project(':common')
    expectedBy project(':common-client')
}
But I would prefer to reuse declarations from
common-native
like in other platforms:
Copy code
dependencies {
    compile project(':common-native')
    expectedBy project(':common-client')
}
This gives me the following error:
Copy code
Could not find method compile() for arguments [project ':common-native'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Similarly
compileKonan
.
l

louiscad

07/06/2018, 9:24 PM
There's a typo in red in your message 😉
m

marcinmoskala

07/10/2018, 3:48 PM
I move to #kotlin-native.
2 Views