jmfayard
08/23/2022, 3:22 AMsdk install kotlin
or snap install kotlin
on heroku and Google isn't my friend either.
Any idea?Vampire
08/23/2022, 8:59 AM.main.kts
script?
I'd "simply" run it through Gradle like
repositories {
mavenCentral()
}
val compilerClasspath by configurations.creating {
isCanBeConsumed = false
}
val scriptClasspath by configurations.creating {
isCanBeConsumed = false
}
dependencies {
compilerClasspath(kotlin("compiler", "1.7.0"))
compilerClasspath(kotlin("scripting-compiler", "1.7.0"))
add(scriptClasspath.name, kotlin("main-kts", "1.7.0"), closureOf<ExternalModuleDependency> { isTransitive = false } as groovy.lang.Closure<Any>)
}
val foo by tasks.registering(JavaExec::class) {
inputs.file(file(".github/workflows/test.main.kts"))
outputs.file(file(".github/workflows/test.yaml"))
classpath(compilerClasspath)
mainClass.set(K2JVMCompiler::class.qualifiedName)
args("-no-stdlib", "-no-reflect")
args("-classpath", scriptClasspath.asPath)
args("-script", file(".github/workflows/test.main.kts").absolutePath)
}
jmfayard
08/24/2022, 12:53 PMVampire
08/24/2022, 12:58 PMjmfayard
08/24/2022, 1:31 PMVampire
08/24/2022, 1:54 PMjmfayard
08/24/2022, 2:02 PMBig Chungus
08/24/2022, 7:20 PMVampire
08/24/2022, 8:50 PM