Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support KSP for the crd-generator #6378

Open
Tanemahuta opened this issue Sep 27, 2024 · 2 comments
Open

Support KSP for the crd-generator #6378

Tanemahuta opened this issue Sep 27, 2024 · 2 comments
Labels
component/crd-generator Related to the CRD generator Waiting on feedback Issues that require feedback from User/Other community members

Comments

@Tanemahuta
Copy link

Is your enhancement related to a problem? Please describe

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 crd-generator.
I'd be willing to help with the modifications.

Describe the solution you'd like

  • abstract the generator code to be independent from the java annotation processor
  • adapt the code for the java annotation processor to reflect the changes
  • create a new ksp implementation using the abstracted code

Describe alternatives you've considered

No response

Additional context

No response

@shawkins
Copy link
Contributor

abstract the generator code to be independent from the java annotation processor

It is now - for the 7.0 release there is version 2 implementation that is no longer dependent on the annotation processor. Rather it will just use maven and gradle plugins. If those will work for you kotlin development, then this can be resolved.

@Tanemahuta
Copy link
Author

I'll have a look into it, and report back.

@manusa manusa added component/crd-generator Related to the CRD generator Waiting on feedback Issues that require feedback from User/Other community members labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/crd-generator Related to the CRD generator Waiting on feedback Issues that require feedback from User/Other community members
Projects
None yet
Development

No branches or pull requests

3 participants