IssueRaiser

Feature request: Support KSP

For Kotlin projects, Dagger currently makes use of KAPT. This is generally quite slow since it requires generating Java stubs before the annotation processing step. [KSP](https://github.com/google/ksp) offers an alternative to this by making it easier for annotation processors like Dagger to more directly use Kotlin's compiler plugin infrastructure. Based on initial benchmarks, using KSP can speed up build times by as much as 2x.

Posted by davidjwiner on Feb 1, 2021, 8:06 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

support (Software)

Feature request: Support KSP

davidjwinerFeb 1, 2021, 8:06 PM

For Kotlin projects, Dagger currently makes use of KAPT. This is generally quite slow since it requires generating Java stubs before the annotation processing step. [KSP](https://github.com/google/ksp) offers an alternative to this by making it easier for annotation processors like Dagger to more directly use Kotlin's compiler plugin infrastructure. Based on initial benchmarks, using KSP can speed up build times by as much as 2x.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue