Hi. I'm trying to find a simple github example of ...
# compiler
a
Hi. I'm trying to find a simple github example of a backend IR compiler-plugin so I can learn the project structure. Any suggestions? (I tried using Kapshot as a starting-point but looks like it uses Kapt... why does it need Kapt?)
s
This is one I wrote recently on 1.8.22, https://github.com/xebia-functional/AsFuture based on this template. https://github.com/Foso/KotlinCompilerPluginExample
a
Thanks @simon.vergauwen! Slowly it's starting to make sense to me. As far as I'm understanding here, you need a Gradle plugin, to call the Kotlin-compiler plugin. You also need to pass options through the Gradle-plugin into the CommandLineProcessor. Does that sound right?