<@U0BGSQ7E0> specifying template in the script bod...
# scripting
i
@andrewoma specifying template in the script body is not supported. But you have other options: - in IDEA -
Settings
->
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.
👍 1