summaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-11-13 12:28:04 +0000
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-11-13 17:42:01 +0000
commit83ad9c927952474f1adeb03bd67331288ed6d6d9 (patch)
treeb1a2626375e07e43d8c412c9adcc78f0f4130f5e /buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts
parentfb2672afb2d8236d5291cd028196c99d8e4d47f1 (diff)
build: Make use of Gradle's Java Toolchains feature
This change updates the build configuration for Gradle to make use of its Java Toolchains feature which enables running/testing multiple Java versions at the same time. This feature can also provision a Java installation if it is not available on the user's system.
Diffstat (limited to 'buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts')
-rw-r--r--buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts
index 554d2279..e16733a4 100644
--- a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts
+++ b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts
@@ -50,7 +50,7 @@ tasks.named("jmh", JMHTask::class) {
dependencies {
constraints {
- val libs = Libs(project)
- jmh(libs["commons.math3"]) // XXX Force JMH to use the same commons-math3 version as OpenDC
+ val versionCatalog = project.defaultVersionCatalog
+ jmh(versionCatalog["commons.math3"]) // XXX Force JMH to use the same commons-math3 version as OpenDC
}
}