Hi folks, I want to ask a feature for Kotlin Main Kts to work with external libraries, could be possible to have a config file ta provides all implicit imports for the MainKts in a library.
Use case:
I'm building library that adds DSL for easy use of Git API, I could just create this file under
META-INF/kotlin/script/import.list
with all the implicit imports provided to the script that uses my library as a dependency (with the
@file:DependOn()
)
i
ilya.chernikov
08/18/2020, 8:58 AM
I'm not sure I understand your request, but seems to me you can build your own script definition with the functionality you like quite easily.
s
SrSouza
08/18/2020, 11:05 AM
Yes, I can, but would be nice to see it in the main kts. I will try to work in a prototype of it.