Another question is that, when I try to run `kotli...
# compiler
t
Another question is that, when I try to run
kotlinc
the first time (to generate stubs) it already fail cause it’s looking for expected generated classes that are used the sources, so, what should I pass as sources when generating stubs and running apt?
y
Looks like the kapt plugin is not enabled.
t
Yeah, I found out that only when passing
-gradle
annotation processing jar, kapt is enable. Couldn’t get it to run with the default one, or even the
-maven
one
y
https://github.com/thalescm/kapt-cli/blob/master/kapt#L73 This is actually not correct. You need to pass
-P plugin:org.jetbrains.kotlin.kapt3:...
for every option you pass.
Also, I saw the message about kapt can’t find the
tools.jar
library. If I remember correctly, it should be passed as
-Xplugin
. Please also note that you can’t use the
:
classpath separator in it.
t
Huuum, interesting to know. Checking the output from gradle plugin, it appears to use both
:
as classpath separator, and one
-P
option with
,
as separator:
y
The option renderer is not really correct, yes
t
that probably will solve the issues I’m having, I’ll try here
huge thanks!
tools.jar has to be passed as
-Xplugin
👍 Thanks