Hi, this is not a strictly KSP-related question......
# ksp
a
Hi, this is not a strictly KSP-related question... I succeeded in creating my own processor with the use of
KotlinPoet
and implemented it in the same project on IntelliJ and everything works fine. Now, I'm trying to import my compiled processor into my android project, but I don't succeed... I do the
./gradlew build
and retrieve the
processor.jar
. I imported this into the
libs
folder, but when I'm trying to run the android project, I have a
NoClassDefFound
on
com.squareup.kotlinpoet.FileSpec
. I tried excluding the transitivity because I have a use of another version of KotlinPoet, 1.11 vs 1.10.2, but in both
FileSpec
exists... It's as if the jar is not including dependencies... I didn't find anything similar on the internet... I'm quite in a struggle here ^^"
e
JARs do not include dependencies. don't use a libs folder, use a Gradle project or composite build or Maven repository.
👍 1
a
OK, so I have to have a mavenLocal or something like that ? Sorry first time I'm making an external library
j
you can publish your processor to
mavenLocal()
, or you can build a uber jar for your processor if you prefer.
👍 1
a
OK thanks guys, will look into it !