This is weird. I have two libraries: (A) multiplat...
# multiplatform
m
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?
d
Are you using the
java
folder or the
kotlin
folder?
m
Neither, I have to add my own source directories.