Kotlin / dataframe

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

Circular dependency on kspKotlin when used under Quarkus 3.9.3 #657

Open laurentperez opened 5 months ago

laurentperez commented 5 months ago

Hello. Tried to use kotlin dataframe, but it does not compile when used under the quarkus framework https://quarkus.io/ 3.9.3

Steps to reproduce

FAILURE: Build failed with an exception.

* What went wrong:
Circular dependency between the following tasks:
:kspKotlin
+--- :quarkusGenerateCode
|    \--- :processResources
|         \--- :kspKotlin (*)
\--- :quarkusGenerateCodeDev
     +--- :processResources (*)
     \--- :quarkusGenerateCode (*)

BUILD FAILED in 883ms

The dependency tree is below. ksp is com.google.devtools.ksp:symbol-processing:1.9.22-1.0.17

tree.txt

laurentperez commented 5 months ago

update

it build if I follow the steps of https://github.com/quarkusio/quarkus/issues/29698

this looks like a quarkus problem, but the root issue has been closed on quarkus side.

unsure if the ksp dependency is required (?)

Jolanrensen commented 5 months ago

Thanks for the update!

We use KSP for the dataframe Gradle Plugin, to generate accessors for @DataSchema interfaces. This plugin is optional, but you might use it somewhere already.

Kopilov commented 5 months ago

I got the same problem, solved it by splitting dataframe-dependent and quarkus-dependent Gradle modules (and applying dataframe plugin on first module only)