You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to also use my commandLineProcessor together with my compilerPluginRegistrar, yet I struggle to provide the compiler plugin options (in the form of -P plugin:<plugin id>:<key>=<value>) to the compiler.
What I have tried so far:
// ...
KotlinCompilation().apply {
sources = sourceFiles
commandLineProcessors = listOf(MyCliProcessor())
compilerPluginRegistrars = listOf(MyCompilerPluginRegistrar())
// how do I pass compiler plugin options?
// neither of the following works:
// kotlincArguments = listOf(""-P plugin:mypluginid:enabled=true")
// kotlincArguments = listOf(""-P plugin:com.tschuchort.compiletesting.maincommandlineprocessor.mypluginid:enabled=true")
// kotlincArguments = listOf(""-P plugin:com.tschuchort.compiletesting.maincommandlineprocessor:mypluginid:enabled=true")
}
Providing no compiler plugin option results in the following error, thus I came up with the above mentioned versions:
e: Required plugin option not present: com.tschuchort.compiletesting.maincommandlineprocessor:myplugin:enabled
Plugin "com.tschuchort.compiletesting.maincommandlineprocessor" usage:
mypluginid:enabled <true|false>
whether plugin is enabled (required)
Can you help me to correctly configure my commandLineProcessor?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I want to also use my commandLineProcessor together with my compilerPluginRegistrar, yet I struggle to provide the compiler plugin options (in the form of
-P plugin:<plugin id>:<key>=<value>
) to the compiler.What I have tried so far:
Providing no compiler plugin option results in the following error, thus I came up with the above mentioned versions:
Can you help me to correctly configure my commandLineProcessor?
Thank you!
Best,
Markus
Beta Was this translation helpful? Give feedback.
All reactions