Does anyone know how to get a sibling java gradle ...
# multiplatform
s
Does anyone know how to get a sibling java gradle module to be usable from Kotlin multiplatform? In the jvmMain source set I’m adding it as a direct implementation dependency, and the ide is telling me it can’t import those classes.
It appears to only work if we precompile the module. It is looking at the class files in the build dir
r
Might be you need to add
withJava()
to your target declaration. See https://kotlinlang.org/docs/mpp-configure-compilations.html#include-java-sources-in-jvm-compilations
s
good idea! I’ll give it a shot