Make KotlinScript annotation accepting all params needed to define a script
This commit is contained in:
+3
-1
@@ -18,7 +18,9 @@ import kotlin.script.experimental.api.ScriptingProperties
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class KotlinScript(
|
||||
val name: String = "Kotlin script"
|
||||
val name: String = "Kotlin script",
|
||||
val extension: String = "kts",
|
||||
val properties: KClass<out ScriptingProperties> = ScriptingProperties::class // object or class filled in 0-ary constructor
|
||||
)
|
||||
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
|
||||
Reference in New Issue
Block a user