Skip to content

Support KSP for AutoFactory #982

Open

Description

@davidjwiner

For Kotlin projects, AutoFactory currently makes use of KAPT. This is generally quite slow since it requires generating Java stubs before the annotation processing step.

KSP offers an alternative to this by making it easier for annotation processors like AutoFactory 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.

Activity

  1. changed the title [-]Support KSP[/-] [+]Support KSP for AutoFactory[/+] on Apr 7, 2021
  2. Double-O-Seven commented on Sep 30, 2021

    @Double-O-Seven

    Any ETA one this one? KSP has recently had it's first stable release.

  3. trietbui-zalora commented on Apr 25, 2023

    @trietbui-zalora

    It was 2 years but there is no progress yet :(

  4. Dwikavindra commented on Nov 10, 2025

    @Dwikavindra

    Hi there kapt would be sunsetted in Kotlin 2.3.0 soon enough Shouldn't this be updated ?

  5. ZacSweers commented on Nov 10, 2025

    @ZacSweers
    Contributor

    Kapt is not getting sunsetted in Kotlin 2.3.0

  6. MucTao commented on Feb 10, 2026

    @MucTao

    已经五年了, 啥时候支持ksp啊,现在只能用https://github.com/ZacSweers/auto-service-ksp/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions