I have a maven project in my company and we're usi...
# ksp
a
I have a maven project in my company and we're using Kotlin 1.9 with kapt. I wanna migrate to kotlin 2.x. Is there a way I can migrate from kapt to ksp with maven?
e
I'm also really interested in this. Maven + KSP setup
m
What are you using kapt for currently? There isn't an obvious connection in my mind between moving to kotlin 2.x and using ksp.
Or is it just a question of how to use ksp with maven (ignoring the kapt stuff from the original post)?
e
Ignoring the kapt setup - I’m only interested in scaffolding a Maven project with Koin annotations. Since Koin annotations require KSP (as the official Koin annotations docs reference Kotlin’s KSP documentation), I assume KSP is necessary here. However, the official Kotlin KSP documentation only provides Gradle-based examples, not Maven ones
m
It's not something I'm super familiar with, but there is a discussion of the issue here: https://github.com/google/ksp/issues/47. And a (probably abandoned) solution in this plugin: https://github.com/Dyescape/kotlin-maven-symbol-processing. My impression is that your options are pretty limited if you can't switch to gradle (and don't want to fork/maintain your own maven plugin)
e
Yep, thanks, I'd switch to Gradle