Is it possible to use the all-open
compiler plugin without Gradle or Maven? Say, with Ant or just kotlinc
directly?
I see that kotlinc
does accept -Xplugin <path>
and -P plugin:<pluginId>:<optionName>=<value>
, but I’m not sure either of these will actually run the plugin, or whether it’s the right way to do it.
1 Like
I’m also interested in using the all-open
plugin from Ant. I’ve attempted to reverse engineer the syntax by looking at the Maven plugin and have come up with the following parameter format (for example).
kotlinc -P plugin:org.jetbrains.kotlin.allopen:annotation=org.springframework.stereotype.Component
However, this doesn’t appear to work. I have yet to try invoking kotlinc
from the command line, but that may have to be my next step.