Personally, I was trying to generate kts files in ...
# scripting
e
Personally, I was trying to generate kts files in that step (with kotlinpoet) and add them as
importScripts
. Doesnt seem to run my code tho 😞
n
that actually works.. it tested it.. just not the IDE integration part
i solved it by added all files into sourceroots via gradle
downside is that all things get compiled multiple times now.. once by gradle and once by kotlin scripting
e
Yep. IDE integration also works too if they are in source root.
n
the problem with that is that runnig a gradle task like a JavaExec will waste effort and might not accurately reflect which symbols are actually available when you just run the jar