kotlinx-serialization support #241
-
Hello 👋 val compilationResult = KotlinCompilation().apply {
jvmTarget = "1.8"
sources = myGeneratedSources
inheritClassPath = true
compilerPlugins = ???
}.compile() Thanks for the great project! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I'm not sure if it is possible or how to do it. The best way to find out would be to find the code of the corresponding Gradle plugin and see what it does. I couldn't find any such code in the repository that you linked, so I suspect that the code for the Gradle plugin is somewhere else. Perhaps this and this is what you're looking for? Hopefully, you just need to add the If you find out how to do it, you're welcome to make a PR to add documentation, or document it in this issue. I'm sure other people will find it helpful as well. |
Beta Was this translation helpful? Give feedback.
I'm not sure if it is possible or how to do it. The best way to find out would be to find the code of the corresponding Gradle plugin and see what it does. I couldn't find any such code in the repository that you linked, so I suspect that the code for the Gradle plugin is somewhere else. Perhaps this and this is what you're looking for? Hopefully, you just need to add the
ComponentRegistrar
that I linked to theKotlinCompilation
and it should work, but theComponentRegistrar
won't be included in the artifact of the runtime library. I'm not sure if it even gets published, but you could try this artifact.If you find out how to do it, you're welcome to make a PR to add documentation, or doc…