From efea162372be99beb4de90929629c7ebccdb8d84 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 7 May 2021 13:34:51 +0200 Subject: build: Access version catalog from buildSrc This change adds a workaround to the build configuration so that we can access the version catalog from pre-compiled scripts in buildSrc. In this way, we can use the version catalog everywhere. This workaround is necessary until https://github.com/gradle/gradle/issues/15383 is fixed. --- buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts') diff --git a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts index 8623e8da..4e73d4d3 100644 --- a/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts @@ -55,13 +55,14 @@ benchmark { } } +dependencies { + val libs = Libs(project) + implementation(libs["kotlinx-benchmark-runtime-jvm"]) +} + // Workaround for https://github.com/Kotlin/kotlinx-benchmark/issues/39 afterEvaluate { tasks.named("jmhBenchmarkJar") { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } } - -dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime-jvm:0.3.0") -} -- cgit v1.2.3