ca71b2fe90
It was missing during configuration refinement thought new scripting API and during loading script configuration on Gradle project import Do not pass additional classpath to configuration classpath: this may only affects Gradle with New scripting API (because it isn't used from other places) In additional classpath kotlin-compiler and kotlin-stdlib was passed and there is no needs for this during loading Script Definitions through new scripting API ^KT-34626 Fixed
26 lines
595 B
Kotlin
Vendored
26 lines
595 B
Kotlin
Vendored
package custom.scriptDefinition
|
|
|
|
import kotlin.script.experimental.annotations.KotlinScript
|
|
import kotlin.script.experimental.api.*
|
|
|
|
@KotlinScript(
|
|
displayName = "Definition for tests",
|
|
fileExtension = "kts",
|
|
compilationConfiguration = TemplateDefinition::class
|
|
)
|
|
open class Template(val args: Array<String>)
|
|
|
|
@Suppress("UNCHECKED_CAST")
|
|
object TemplateDefinition : ScriptCompilationConfiguration(
|
|
{
|
|
baseClass(Base::class)
|
|
ide {
|
|
acceptedLocations(ScriptAcceptedLocation.Everywhere)
|
|
}
|
|
}
|
|
)
|
|
|
|
open class Base {
|
|
val i = 3
|
|
val str = ""
|
|
} |