ilya.chernikov
03/03/2017, 9:03 AMSettings -> Build, execution, Deployment -> Kotlin Compiler -> Script template classes for specifying FQN of the classes that should be recognised in IDEA. And Script templates classpath for all template dependencies.
- from CLI compiler - -classpath option for dependencies, and -script-templates for templates FQNs`
Couple of caveats to keep in mind:
- you need to specify transitive dependencies as well, when you’re using corresponding functionality, and for maven resolving this is unfortunately quite a lot raising from using of jcabi-aether and maven-core.
- after specifying templates in the IDEA settings, you'll need to reload the project
The generic scripting support is still work in progress, so this is going to become easier eventually.