How can I create my own compiler plugin?


#1

I want to create my own custom Kotlin compiler plugin, but couldn’t find where to start, the official doc just lists some pre-built plugin and does not provide any doc on plugin dev. Does anybody have resources on this?


#2

There is no official compiler plugin API yet. You can take a look at how the existing plugins work, but there is no guarantee that the API will stay as it is.
That being said the Kotlin team said that they are planning to create a stable API and based on the videos of the Kotlin conference I guess it will be part of 1.4.