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

Marc Knaup

08/23/2020, 7:59 PM
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

Dominaezzz

08/23/2020, 8:31 PM
Are you using the
java
folder or the
kotlin
folder?
m

Marc Knaup

08/23/2020, 8:32 PM
Neither, I have to add my own source directories.
8 Views