Hi everybody I would like to use DataFrame: 0.14.1...
# datascience
l
Hi everybody I would like to use DataFrame: 0.14.1, Kotlin: 2.0.0 with following configuration -> Gradle tasks build, assemble, generateDataFrames don't generate extension properties. Could you help me where the problem is?
Copy code
plugins {
    alias(libs.plugins.kotlin.multiplatform)
    alias(libs.plugins.kotlin.serialization)
    alias(libs.plugins.kotlinx.dataframe)
}

kotlin {
    jvm {
        compilerOptions {
            jvmTarget.set(JvmTarget.JVM_17)
        }
    }

    sourceSets {
        jvmMain {
            dependencies {
                implementation(project(":core:config"))
                implementation(project(":core:datetime"))
                implementation(project(":core:di"))
                implementation(project(":core:format"))
                implementation(project(":core:graph"))

                implementation(libs.koin.core)
                implementation(libs.kotlinx.coroutines)
                implementation(libs.kotlinx.dataframe)
                implementation(libs.kotlinx.datetime)
            }
        }
    }
} 

kotlinx-dataframe = { id = "org.jetbrains.kotlinx.dataframe", version.ref = "dataframe" }
kotlinx-dataframe = { group = "org.jetbrains.kotlinx", name = "dataframe", version.ref = "dataframe" }
j
Hi! Thanks for reaching out. It seems our Gradle plugin has some difficulties understanding Kotlin multiplatform projects. We use KSP under-the-hood to generate the extensions. The Gradle plugin adds our
symbol-processor-all
module as a dependency to KSP automatically, but, as you can see here, KSP on multiplatform requires its dependencies to be defined with the
add()
function. This means that adding the following block:
Copy code
dependencies {
    add("kspJvm", "org.jetbrains.kotlinx.dataframe:symbol-processor-all:${libs.versions.dataframe.get()}")
}
will likely solve your issue 🙂 I'll also make an issue to see if we can do this automatically in the future or whether we need to update our docs
👍 3
l
@Jolan Rensen [JB] Thank you. I love your DataFrame lib✌️
❤️ 3
👍 1