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

[REQ] Add possibility to use KSP instead of KAPT #20702

Open
savvasenok opened this issue Feb 21, 2025 · 0 comments
Open

[REQ] Add possibility to use KSP instead of KAPT #20702

savvasenok opened this issue Feb 21, 2025 · 0 comments

Comments

@savvasenok
Copy link

savvasenok commented Feb 21, 2025

Is your feature request related to a problem? Please describe.

We generate client libraries for our app and we use moshi codegen. The problem is, that for a valid codegeneration we need KSP, but not KAPT, that is generated by default

Describe the solution you'd like

Maybe configuration flag like "moshiCodegenKsp": Boolean

Describe alternatives you've considered

No alternatives

Additional context

The thing is, that i wanted to introduce kotlin value classes into our generated models. Everything worked like charm in my test project, but i got wierd codegen in the real one. As it seems to me, the problem is, that my test project is using KSP for moshi codegen, but the library we ship is using kapt: i can see it in a generated build.gradle file. When i tested the theory, that KAPT might break my test project - it really broke it and i received the same error

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

No branches or pull requests

1 participant