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

addamsson

11/08/2018, 8:39 PM
How do I make project dependencies transitive when using the
kotlin-multiplatform
plugin? My understanding was that I should use
api
in my
build.gradle
like this:
Copy code
jvmMain {
            dependencies {
                api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
                api libraries.kotlin_reflect
                api libraries.caffeine
                api libraries.snakeyaml
                api libraries.slf4j_api
                api libraries.slf4j_simple
                api libraries.trie_map
            }
        }
But when I reference this multiplatform project in another project in my multi-project build:
Copy code
dependencies {
    compile project(":zircon.core")

    compile libraries.kotlin_stdlib
    compile libraries.filters

    testCompile libraries.junit
    testCompile libraries.mockito
    testCompile libraries.assertj
}
and publish this to a repository, when I add my project as dependency:
Copy code
dependencies {
    compile "org.hexworks.zircon:zircon.jvm.swing:$version"
}
only the contents of the
org.hexworks.zircon:zircon.jvm.swing
are added to the classpath and I can't see stuff from
zircon.core
. What could be the problem?
j

Jurriaan Mous

11/08/2018, 8:45 PM
I added an issue for that 3 days ago. Will be fixed in 1.3.20
👍 1
a

addamsson

11/08/2018, 8:45 PM
cool, thanks!
4 Views