rules_kotlin
rules_kotlin copied to clipboard
Missing support for passing options to KSP processors
KSP offers a way to pass options to processors, its done with the -P flag, for example:
-P plugin:com.google.devtools.ksp.symbol-processing:apoption=key=value
Since we don't have a dedicated attr for that and the existing kotlinc opts are not supporting -P it's impossible to pass those options to the KSP plugin.
We probably would want to allow declaring the options on both target and processor level.
Does KSP fall on unknown options?
Does KSP fall on unknown options?
In general , yes, since kotlinc will throw on unknown options, but in the case of apoptions it simply going to split by = and pass down the key values.