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
Edgar Avuzi
08/08/2025, 5:46 PM
I'm also really interested in this. Maven + KSP setup
m
micah
08/08/2025, 9:17 PM
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.
micah
08/08/2025, 9:18 PM
Or is it just a question of how to use ksp with maven (ignoring the kapt stuff from the original post)?
e
Edgar Avuzi
08/09/2025, 1:59 AM
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