Skip to content

Commit

Permalink
build: declare kotlinx.benchmark in version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
mervyn-mccreight committed Jan 27, 2025
1 parent 1a6699a commit 2e898e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
kotlin = "2.1.0"
kotlinx-coroutines = "1.10.1"
kotlinx-serialization = "1.8.0"
kotlinx-benchmark = "0.4.13"
jackson = "2.18.2"
ktor = "3.0.3"
junit-jupiter = "5.11.4"

[plugins]
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlinx-benchmark = { id = "org.jetbrains.kotlinx.benchmark", version.ref = "kotlinx-benchmark" }

[libraries]
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
Expand All @@ -29,3 +31,4 @@ hamcrest = { module = "org.hamcrest:hamcrest", version = "3.0" }
kluent = { module = "org.amshove.kluent:kluent", version = "1.73" }
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit-jupiter" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-jupiter" }
kotlinx-benchmark-runtime = { module = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime", version.ref = "kotlinx-benchmark" }
4 changes: 2 additions & 2 deletions kgraphql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import kotlinx.benchmark.gradle.JvmBenchmarkTarget

plugins {
id("library-conventions")
id("org.jetbrains.kotlinx.benchmark") version "0.4.13"
alias(libs.plugins.kotlinx.benchmark)
}

lateinit var benchmarkImplementation: String
Expand Down Expand Up @@ -43,5 +43,5 @@ dependencies {
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.kotlinx.coroutines.debug)
testImplementation(libs.kotlinx.coroutines.test)
benchmarkImplementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4.13")
benchmarkImplementation(libs.kotlinx.benchmark.runtime)
}

0 comments on commit 2e898e5

Please sign in to comment.