This is a small Kotlin compiler plugin template. It's primarily focused on how to set up a corresponding Gradle project.
In contrary to other templates can be found on GitHub, this one:
- Contains detailed explanations about each component's purpose and configuration.
- Doesn't have any additional complications like publishing, CI/CD and other extra configurations.
It's better to clone this repository and open in the IDE, as there are some helpful entry-point run configurations provided.
- Start with investigating the compiler-plugin module.
Open and review
MeruCompilerPluginRegistrar
as it is an entry point for all configurations and logic of the compiler plugin itself. - Then check the gradle-plugin module which represents a Gradle plugin to apply and configure the compiler plugin within Gradle build scripts (a kind of Gradle wrapper for it).
- And eventually open the sandbox project to see how the plugin can be applied and configured for Gradle modules.