Writing Your First Kotlin Compiler Plugin

7789a17312fed04fc16312c75386faf9?s=47 Kevin Most
October 04, 2018

Writing Your First Kotlin Compiler Plugin

The Kotlin compiler plugin API gives us powerful features like Parcelize and the synthetic view accessor methods in kotlinx.android. These features could not be built using similar, but more limited, mechanisms, such as annotation processing.

The Kotlin compiler plugin API is not currently well-documented, but that doesn't mean that it can't be explored! In this talk, we will start from scratch and show how we can build a compiler plugin and deploy an artifact to a public location, so that we can build plugins that can be applied as easily as the official compiler plugins.

This version was presented at KotlinConf 2018: https://kotlinconf.com/schedule/#date=4-october&session=41262


Kevin Most

October 04, 2018