diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-07 13:34:51 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-07 13:34:51 +0200 |
| commit | efea162372be99beb4de90929629c7ebccdb8d84 (patch) | |
| tree | 068a38613d29bdbd4fe39aee90fde86343c656f3 /buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | |
| parent | 324d7eccf5892a509dc76c7abcecf20fec09a877 (diff) | |
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.
Diffstat (limited to 'buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts')
| -rw-r--r-- | buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | 9 |
1 files changed, 5 insertions, 4 deletions
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<org.gradle.jvm.tasks.Jar>("jmhBenchmarkJar") { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } } - -dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime-jvm:0.3.0") -} |
