Setting scriptTemplate setting via gradle


I haven’t been able to figure out how get Intellij to set the script templates and classpath via gradle, is there a way to do this or is it required to manually set those settings as of right now? The settings I’m talking about are below.

I’ve tried using the following config, but it doesn’t seem like the scriptTemplates exists.

    compileKotlin {
        kotlinOptions {
            jvmTarget = "1.8"
            scriptTemplates = "test1"
            scriptTemplatesClasspath = "test1"