rnett
06/19/2021, 2:13 AMBig Chungus
06/19/2021, 9:22 AMrnett
06/19/2021, 8:29 PM.main.kts
files, and only if you're using the main-kts script definition (that's where it's implemented, see https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-main-kts/src/org/jetbrains/kotlin/mainKts/scriptDef.kt)Big Chungus
06/19/2021, 8:55 PM#!/usr/bin/env kotlinc -script
@file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0")
import kotlinx.coroutines.runBlocking
*.main.kts is just a conventions to implicitly apply -script flagBig Chungus
06/19/2021, 8:55 PMBig Chungus
06/19/2021, 8:56 PM./whatever
Big Chungus
06/19/2021, 8:56 PMchmod +x whatever
first)rnett
06/19/2021, 11:00 PMkotlinc
, is the issuernett
06/19/2021, 11:01 PMBig Chungus
06/19/2021, 11:50 PMrnett
06/19/2021, 11:56 PMkotlin-main-kts
script def (see the earlier github link), and are declared in kotlin-main-kts
and kotlin-scripting-dependencies
.Big Chungus
06/20/2021, 12:19 AMilya.chernikov
06/21/2021, 7:00 AMkotlin-scripting-dependencies-maven
instead of the ivy resolver. We will switch to the maven resolver soon in all projects too.rnett
06/21/2021, 7:04 AMImport
and CompilerOptions
to separate dependencies like has been done for dependency resolution? Should I make a youtrack issue?ilya.chernikov
06/21/2021, 7:07 AMImport
- there are several open questions there, e.g. IDE support.rnett
06/21/2021, 7:35 AM