Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
821 stars 58 forks source link

Ksp fix #592

Closed Jolanrensen closed 7 months ago

Jolanrensen commented 7 months ago

Fixes https://github.com/Kotlin/dataframe/pull/571 further.

With kotlin.dataframe.add.ksp=false, the user-specified KSP still needs to depend on symbol-processor-all like before. This PR configures KSP regardless of the add.ksp setting.

Jolanrensen commented 7 months ago

I updated the KSP version to 1.9.22 ahead of the version bumps. Last update of KSP in https://github.com/Kotlin/dataframe/pull/571 caused KSP to be unaware of @DataSchemas generated by dataframes {} tasks. This is done by modifying the creation of each individual generateDataFrameX task. Those tasks already added their new src directory to the kotlin sourceSets. While this used to be enough for KSP, it isn't anymore, so now the source is added to the relevant ksp task. For instance: "build/generated/dataframe/main/kotlin" will be added to kspKotlin and "build/generated/dataframe/test/kotlin" will be added to kspTestKotlin.