Add import support to main-kts, with test

This commit is contained in:
Ilya Chernikov
2019-01-07 18:11:43 +01:00
parent 4571e273a4
commit 02f2c941c8
6 changed files with 87 additions and 24 deletions
@@ -30,3 +30,10 @@ annotation class DependsOn(val value: String = "", val groupId: String = "", val
@Retention(AnnotationRetention.SOURCE)
annotation class Repository(val value: String = "", val id: String = "", val url: String = "")
/**
* Import other script(s)
*/
@Target(AnnotationTarget.FILE)
@Repeatable
@Retention(AnnotationRetention.SOURCE)
annotation class Import(vararg val paths: String)