Hey guys when working with kotlin compiler plugins...
# kotlin-plugin
b
Hey guys when working with kotlin compiler plugins, how can I pass multiple parameters to it?
m
Yes, any number of parameters this plugin supports.
b
Hey @marcinmoskala, so when defining the plugin in the gradle file, how can I pass multiple args? For example, I want to pass
logTag
and
aggressiveness
values along with
enable
arg
Copy code
compileKotlin {
    kotlinOptions {
        freeCompilerArgs = ["-P", "plugin:app.example.localization.kcp.TKeyVerifier:enable=false"]
    }
}
m
The most common answer seems to be using plugin to define a DSL for specifying arguments. See how it is implemented in different complier plugins https://github.com/JetBrains/kotlin/tree/master/plugins