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

Is it possible to add compiler plugins to the server? #715

Open
RaphaelTarita opened this issue Jan 4, 2024 · 1 comment
Open

Is it possible to add compiler plugins to the server? #715

RaphaelTarita opened this issue Jan 4, 2024 · 1 comment

Comments

@RaphaelTarita
Copy link
Contributor

As far as it is documented in the README file, I haven't found a way to add compiler plugins to the served compiler (similarly to adding dependencies). For example, if I want the compiler to support kotlinx-serialization, I can include the dependency like this:

dependencies {
    kotlinDependency("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
    // ...
}

but that's not enough because kotlinx-serialization needs the kotlin("plugin.serialization") compiler plugin as well.

I would assume that the plugins block of this project is not the correct location to add this plugin, since it would only be applied to the gradle project itself and not to the compiler that is served when the server is started.

Is such functionality currently implemented? If yes, how can I configure it? If no, are there plans to support compiler plugins?

@nikpachoo
Copy link
Collaborator

Hi @RaphaelTarita!
I attempted to add kotlinx.serialization support some time ago but failed.(#540)
We still want to add the support to kotlinx. serialization, and we're planning to try once again.

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