Skip to content

Support KSP for writing extensions in Kotlin #43553

Open

Description

Description

Background:

  • kotlin is a popular language (rightly so)
  • kapt is the adapter for java annotation processing
    • the is in maintenance mode
    • does not support kotlin 2
  • ksp is the replacement for kapt
    • works different
    • does not support the java annotation processing
    • more efficient

I (and probably not only me) would love to see support for KSP for the quarkus-extension-processor.
I'd be willing to help with the modifications.

Implementation ideas

  • modify the interface for io.quarkus.annotation.processor.ExtensionProcessor:
    • introduce an abstraction for javax.annotation.processing.RoundEnvironment and javax.lang.model.element.TypeElement
  • adapt the broken code
  • extract all generic code to a new library, which has no dependency on the annotation processor
  • create a new module for java annotation processing
  • create a new module for ksp and implement the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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