Vampire
06/15/2023, 12:01 PM.kts
you cannot use the .main.kts
specific things like @file:DependsOn
and so on.Eugen Martynov
06/15/2023, 12:02 PMEugen Martynov
06/15/2023, 12:02 PMmbonnin
06/15/2023, 4:06 PM.kts
requires 3rd party tools like kscript . *.main.kts
will get you first party support in both the kotlin CLI and IntelliJmbonnin
06/15/2023, 4:07 PM*.main.kts
but this feels more future proofEugen Martynov
06/15/2023, 4:17 PMmbonnin
06/15/2023, 4:19 PM.kts
files) but at the end of the day, .kts
is not enough to distinguish between something like foo.gradle.kts
and just foo.kts
mbonnin
06/15/2023, 4:19 PMmain.kts
is explicit that it's to be run by kotlin
and not something elseEugen Martynov
06/15/2023, 4:29 PM