From 823c1e7ca54a77dcb85512271fb6f6af604e5925 Mon Sep 17 00:00:00 2001 From: Suresh G Date: Sun, 22 Oct 2023 00:38:42 -0700 Subject: [PATCH] chore: helidon and graalvm plugin updates --- gradle/libs.versions.toml | 6 +++--- src/main/kotlin/dev/suresh/Main.kt | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0b8ea78..f3dd80f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -36,9 +36,9 @@ ajalt-clikt = "4.2.1" ajalt-mordant = "2.2.0" ajalt-colormath = "3.3.3" dokka = "1.9.10" -helidon = "4.0.0-RC1" +helidon = "4.0.0-RC2" jgit = "6.6.0.202305301015-r" -jte = "3.1.2" +jte = "3.1.3" junit = "5.10.0" ktor = "2.3.5" kotlinRetry = "1.0.9" @@ -69,7 +69,7 @@ semver-plugin = "0.5.0-rc.5" taskinfo = "2.1.0" dependency-analysis = "1.25.0" best-practices-plugin = "0.10" -graalvm-nativeimage = "0.9.27" +graalvm-nativeimage = "0.9.28" beryx-jlink = "2.24.4" beryx-runtime = "1.13.0" beryx-jar = "2.0.0" diff --git a/src/main/kotlin/dev/suresh/Main.kt b/src/main/kotlin/dev/suresh/Main.kt index 829db97..1c32b20 100644 --- a/src/main/kotlin/dev/suresh/Main.kt +++ b/src/main/kotlin/dev/suresh/Main.kt @@ -16,7 +16,6 @@ import io.helidon.webserver.staticcontent.StaticContentService import io.ktor.client.* import io.ktor.client.engine.cio.* import io.ktor.client.plugins.websocket.* -import io.ktor.http.* import io.ktor.utils.io.core.* import io.rsocket.kotlin.RSocket import io.rsocket.kotlin.core.WellKnownMimeType @@ -26,6 +25,11 @@ import io.rsocket.kotlin.ktor.client.rSocket import io.rsocket.kotlin.payload.PayloadMimeType import io.rsocket.kotlin.payload.buildPayload import io.rsocket.kotlin.payload.data +import kotlinx.coroutines.asCoroutineDispatcher +import kotlinx.coroutines.flow.flowOn +import kotlinx.coroutines.flow.take +import kotlinx.coroutines.runBlocking +import org.graalvm.nativeimage.ImageInfo import java.io.File import java.lang.System.Logger.Level.INFO import java.lang.management.ManagementFactory @@ -58,11 +62,6 @@ import kotlin.jvm.optionals.getOrDefault import kotlin.system.exitProcess import kotlin.time.Duration.Companion.minutes import kotlin.time.Duration.Companion.seconds -import kotlinx.coroutines.asCoroutineDispatcher -import kotlinx.coroutines.flow.flowOn -import kotlinx.coroutines.flow.take -import kotlinx.coroutines.runBlocking -import org.graalvm.nativeimage.ImageInfo val logger = System.getLogger("Main") val vtDispatcher by lazy { Executors.newVirtualThreadPerTaskExecutor().asCoroutineDispatcher() }