Feature request, maybe not possible:
.kts files for importing a package from a maven repository or local jar.
This would make Kotlin one of the most powerful scripting languages I can think of, as you could quickly access advanced functionality from trusted sources in a completely portable manner, as the exact version of the dependency is even specified.
Something like this:
//Pulling from a common maven repository //Trusted repositories part of the per-computer settings, including Bintray and Maven Central by default? using maven("com.fasterxml.jackson.core:jackson-databind:2.9.4") //Pulling from an uncommon maven repository, not expected to be found //Compiler should ask if you want to include it in your trusted repositories? using maven("lk-kotlin:lk-kotlin-utils:0.0.4", canBeFoundIn="https://dl.bintray.com/lightningkite/lk-kotlin") //Pulling from a local jar using jar("./local.jar") //Importing something now works! import com.fasterxml.jackson.databind.ObjectMapper //... //Later usage println(ObjectMapper().writeValueAsString(someObject))