-
Notifications
You must be signed in to change notification settings - Fork 72
-
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:
// ...
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?
Thank you!
Best,
Markus
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment