From fab2c83e22ca438b13355e97c4ff904dce9f39f4 Mon Sep 17 00:00:00 2001 From: Dan Tanner Date: Tue, 12 Mar 2024 09:36:49 -0500 Subject: [PATCH] update dependencies (#49) --- build.gradle.kts | 16 ++++++++-------- .../chaperone/writer/InfluxDbWriterTest.kt | 5 +++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5da88e6..82b0e4e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,24 +23,24 @@ application { dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.8.0") - implementation("ch.qos.logback:logback-classic:1.2.10") - implementation("net.logstash.logback:logstash-logback-encoder:7.0.1") { + implementation("ch.qos.logback:logback-classic:1.4.14") + implementation("net.logstash.logback:logstash-logback-encoder:7.4") { exclude(group = "com.fasterxml.jackson.core") } - implementation("io.github.microutils:kotlin-logging-jvm:2.1.21") - implementation("org.slf4j:slf4j-api:1.7.35") + implementation("io.github.microutils:kotlin-logging-jvm:3.0.5") + implementation("org.slf4j:slf4j-api:2.0.9") // cli parsing - implementation("com.github.ajalt.clikt:clikt:3.4.0") + implementation("com.github.ajalt.clikt:clikt:4.2.2") // config implementation("com.uchuhimo:konf-toml:1.1.2") // cron scheduling - implementation("com.cronutils:cron-utils:9.1.6") + implementation("com.cronutils:cron-utils:9.2.1") // api - val http4kVersion = "4.44.0.0" + val http4kVersion = "5.14.0.0" implementation("org.http4k:http4k-core:$http4kVersion") implementation("org.http4k:http4k-server-undertow:$http4kVersion") implementation("org.http4k:http4k-client-okhttp:$http4kVersion") @@ -57,5 +57,5 @@ dependencies { testImplementation(kotlin("test-junit5")) testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2") - testImplementation("io.kotest:kotest-assertions-core:5.6.2") + testImplementation("io.kotest:kotest-assertions-core:5.8.1") } diff --git a/src/test/kotlin/chaperone/writer/InfluxDbWriterTest.kt b/src/test/kotlin/chaperone/writer/InfluxDbWriterTest.kt index f1972dc..6a04e47 100644 --- a/src/test/kotlin/chaperone/writer/InfluxDbWriterTest.kt +++ b/src/test/kotlin/chaperone/writer/InfluxDbWriterTest.kt @@ -14,7 +14,8 @@ import java.time.Instant class InfluxDbWriterTest { - private val writer = InfluxDbWriter(config = InfluxDbWriterConfig(db = "a", uri = "http://localhost:9000")) + private val httpServerPort = 9000 + private val writer = InfluxDbWriter(config = InfluxDbWriterConfig(db = "a", uri = "http://localhost:$httpServerPort")) @Test fun `generate line`() { @@ -30,7 +31,7 @@ class InfluxDbWriterTest { @Test fun `write test`() { val app = { _: Request -> Response(Status.NO_CONTENT) } - val server = app.asServer(Undertow(9000)).start() + val server = app.asServer(Undertow(httpServerPort)).start() val checkResult = CheckResult(name = "sample check", status = CheckStatus.OK) writer.write(checkResult)