m

    Marc Knaup

    2 years ago
    This is weird. I have two libraries: (A) multiplatform library with JVM target +
    withJava()
    (B) multiplatform library with JVM target that depends on (A) - (no
    withJava()
    ) If I add my java sources folder to the Kotlin JVM target of (A), then (A) compiles successfully but (B) can’t see the Java symbols. If I add my java sources folder to the entire project (just like in a normal Java project) of (A) then (A) doesn’t see the symbols but (B) does. If I specify the source set configuration for both in (A), i.e. in the Kotlin JVM target AND in the Java project, then it works fine in both 🤔 What’s the right way to set that up?
    Dominaezzz

    Dominaezzz

    2 years ago
    Are you using the
    java
    folder or the
    kotlin
    folder?
    m

    Marc Knaup

    2 years ago
    Neither, I have to add my own source directories.