altavir
02/12/2019, 9:54 AMilya.chernikov
02/12/2019, 10:48 AMkotlin-main-kts
or kotlin-script-util
then - yes:
@file:Repository("<https://jcenter.bintray.com>")
(see e.g. an example in the 1.3 RC blog post - https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-3-rc-is-here-migrate-your-coroutines/)altavir
02/12/2019, 11:00 AMaltavir
02/12/2019, 11:59 AMhtml.kts:1:7: error: unresolved reference: Repository
@file:Repository("<https://jcenter.bintray.com>")
ilya.chernikov
02/13/2019, 10:18 AMaltavir
02/13/2019, 10:20 AMkotlinc -cp "C:\Users\darksnake\scoop\apps\kotlin\1.3.21\lib\kotlin-main-kts.jar" -script html.kts
altavir
02/13/2019, 10:21 AM> kotlinc -version
info: kotlinc-jvm 1.3.21 (JRE 1.8.0_131-b11)
ilya.chernikov
02/13/2019, 10:23 AMaltavir
02/13/2019, 10:23 AMilya.chernikov
02/13/2019, 10:24 AMkotlin-main-kts
defines scripts with support of resolving which are tied to the “.main.kts” extension.altavir
02/13/2019, 10:25 AMaltavir
02/13/2019, 10:27 AMilya.chernikov
02/13/2019, 10:31 AMilya.chernikov
02/13/2019, 10:33 AMaltavir
02/13/2019, 10:35 AM#~<something here>~#
. And then read the whole file using this something. In case of scripts it seems like just using explicit command line argument and inferring from extension if it is not provided seems to be good backward-compatible way.ilya.chernikov
02/13/2019, 1:46 PM