zt
10/18/2022, 7:45 PMmbonnin
10/18/2022, 9:34 PM*.main.kts
, I'm not sure there's an easy way to configure the compiler plugin. There are ways for sure but that doesn't sound particularly straightforwardBig Chungus
10/18/2022, 10:40 PMSrSouza
10/27/2022, 1:57 PMzt
11/02/2022, 12:08 AM-Xplugin
arg, though I don't know how. I tried adding this into my compilation configuration but that just says The following compiler arguments are ignored on script compilation: -Xplugin
when the script is ran
compilerOptions.append("-Xplugin=/home/nick/.gradle/caches/jars-9/21911321bfa89962cc8dbb6574b040d5/compose-gradle-plugin-1.2.0.jar")
zt
11/02/2022, 1:47 AM@file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
import kotlinx.coroutines.runBlocking
import androidx.compose.runtime.*
import androidx.compose.material.*
import androidx.compose.ui.window.*
runBlocking {
println("Hello")
application {
Window(
onCloseRequest = ::exitApplication
) {
Text("Hello, world!")
}
}
}
The println gets ran, but no window shows up and the script just closes with no errorsSrSouza
11/22/2022, 3:32 PMilya.chernikov
11/22/2022, 3:51 PMzt
12/02/2022, 5:53 AMilya.chernikov
12/02/2022, 11:04 AMzt
12/03/2022, 5:19 AMException in thread "main" java.lang.NoClassDefFoundError: androidx/compose/ui/window/Application_desktopKt