https://kotlinlang.org logo
#ksp
Title
# ksp
d

Doni Winata

01/31/2023, 7:42 AM
does kapt will be deprecated in future and replace completly by ksp ?
image.png
d

David Rawson

01/31/2023, 8:09 PM
The way I interpret that message is that kapt will still be around but it won’t receive any significant updates. So if you own a Kotlin annotation processor, good to move it to KSP. And if you use annotation processors in your Kotlin project, good to move to to KSP as well since you can avail of performance improvements. Completely eliminating kapt Gradle tasks from your project is likely to mean faster build times: https://twitter.com/ZacSweers/status/1270988203332435970
d

Doni Winata

02/02/2023, 12:22 PM
i see, the problem is we use lot of databinding code on our app. https://issuetracker.google.com/issues/173030256 and now databinding also on maintenance mode and not planning to support ksp.
d

David Rawson

02/02/2023, 9:14 PM
Yes the data binding situation is unfortunate. If it’s impossible to migrate to view binding, I would say concentrate on ensuring that any new Gradle modules don’t use any kapt annotation processors.
140 Views