Skip to content

Instantly share code, notes, and snippets.

@bnorm
Last active November 21, 2020 18:49
Show Gist options
  • Save bnorm/78f8c88f9c08206d196fda2addf97927 to your computer and use it in GitHub Desktop.
Save bnorm/78f8c88f9c08206d196fda2addf97927 to your computer and use it in GitHub Desktop.
Writing Your Second Kotlin Compiler Plugin
buildConfig {
val project = project(":kotlin-ir-plugin")
packageName(project.group.toString())
buildConfigField("String", "KOTLIN_PLUGIN_ID", "\"${rootProject.extra["kotlin_plugin_id"]}\"")
buildConfigField("String", "KOTLIN_PLUGIN_GROUP", "\"${project.group}\"")
buildConfigField("String", "KOTLIN_PLUGIN_NAME", "\"${project.name}\"")
buildConfigField("String", "KOTLIN_PLUGIN_VERSION", "\"${project.version}\"")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment