Skip to content

Commit 81028b3

Browse files
committed
chore: dependency updates
1 parent f43fb80 commit 81028b3

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

backend/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
plugins.kotlin.jvm
77
}
88

9+
description = "Ktor backend application"
10+
911
application {
1012
mainClass = "AppKt"
1113
applicationDefaultJvmArgs +=

benchmarks/build.gradle.kts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
import common.mppTargetName
2+
import kotlinx.benchmark.gradle.BenchmarkTarget
3+
import kotlinx.benchmark.gradle.JvmBenchmarkTarget
24

35
plugins {
46
plugins.kotlin.mpp
57
alias(libs.plugins.kotlinx.benchmark)
68
alias(libs.plugins.kotlin.allopen)
79
}
810

11+
description = "Kotlin benchmarking tests"
12+
913
allOpen { annotation("org.openjdk.jmh.annotations.State") }
1014

1115
benchmark {
1216
targets {
13-
register("jvm")
14-
register("desktop")
17+
register("jvm") { configureJmh() }
18+
register("desktop") { configureJmh() }
1519
// register("js")
1620
}
1721

@@ -33,3 +37,8 @@ dependencies {
3337
commonMainImplementation(projects.common)
3438
commonMainImplementation(libs.kotlinx.bench.runtime)
3539
}
40+
41+
fun BenchmarkTarget.configureJmh() {
42+
this as JvmBenchmarkTarget
43+
jmhVersion = libs.versions.jmh.get()
44+
}

common/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ application {
2020

2121
dependencies {
2222
// Common multiplatform dependencies
23-
commonMainImplementation(libs.kotlinx.io.bytestring)
2423
commonMainImplementation(libs.kotlinx.io.core)
2524
commonMainImplementation(libs.ktor.client.core)
2625
commonMainImplementation(libs.ktor.client.logging)

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ publish-scm-url = "https://github.com/sureshg/kotlin-mpp-playgrou
2222

2323
# Gradle Dependencies Versions
2424
kotlinx-kover = "0.7.2"
25-
kotlinx-io = "0.2.0"
25+
kotlinx-io = "0.2.1"
2626
kotlinx-atomicfu = "0.21.0"
2727
kotlinx-coroutines = "1.7.2"
2828
kotlinx-datetime = "0.4.0"
@@ -54,6 +54,7 @@ ksp-powerassert = "0.13.0"
5454
slf4j = "2.0.7"
5555
logback = "1.2.6"
5656
log4j = "3.0.0-alpha1"
57+
jmh = "1.36"
5758
ktfmt = "0.44"
5859
google-javaformat = "1.17.0"
5960
google-auto-service = "1.1.1"
@@ -139,7 +140,6 @@ kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-seri
139140
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime" , version.ref = "kotlinx-datetime"}
140141
kotlinx-atomicfu = { module = "org.jetbrains.kotlinx:atomicfu" , version.ref = "kotlinx-atomicfu"}
141142
kotlinx-io-core = { module = "org.jetbrains.kotlinx:kotlinx-io-core" , version.ref = "kotlinx-io"}
142-
kotlinx-io-bytestring = { module = "org.jetbrains.kotlinx:kotlinx-io-bytestring" , version.ref = "kotlinx-io"}
143143
kotlinx-lincheck = { module = "org.jetbrains.kotlinx:lincheck" , version.ref = "kotlinx-lincheck"}
144144
kotlinx-reflect-lite = { module = "org.jetbrains.kotlinx:kotlinx.reflect.lite" , version.ref = "kotlinx-reflect-lite"}
145145
kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable" , version.ref = "kotlinx-collections-immutable"}

0 commit comments

Comments
 (0)