rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Missing support for passing options to KSP processors

Open idanakav opened this issue 2 years ago • 2 comments

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.

idanakav avatar Sep 28 '23 02:09 idanakav

Does KSP fall on unknown options?

restingbull avatar Sep 29 '23 23:09 restingbull

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.

idanakav avatar Oct 03 '23 01:10 idanakav