spierce7

    spierce7

    1 year ago
    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
    russhwolf

    russhwolf

    1 year ago
    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
    spierce7

    spierce7

    1 year ago
    good idea! I’ll give it a shot