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

[Feature Request] Allow exporting KSP plugins #1063

Open
ianb-pomelo opened this issue Oct 31, 2023 · 0 comments
Open

[Feature Request] Allow exporting KSP plugins #1063

ianb-pomelo opened this issue Oct 31, 2023 · 0 comments
Assignees

Comments

@ianb-pomelo
Copy link

Right now kt_jvm_library supports exporting compiler plugins but it does not support exporting KSP plugins. Java libraries do support exporting annotation processors, which lends itself to a nice pattern of having a target for a library that compiles the processor, a target with the plugin and a target that exports the plugin and the annotation it is associated with. However, since kt_jvm_library does not allow exporting KSP plugins, in order for the plugin to run when a class is annotated with an annotation, the user must know to also depend on the plugin, making it error prone.

Would it be possible to add support for exporting a KSP plugin so downstream users can depend on a single library that exports the dependency code and the plugin?

@restingbull restingbull self-assigned this Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants