From e22bd0afa47f91961eb5d8d1b9bb697382b58fdf Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Wed, 24 Jul 2024 17:01:35 +0500 Subject: [PATCH] Temporary fix: Override Kotlin version in the plugin module Fixes issue #236. Eventually, the plugin should use the version of Kotlin embedded into Gradle. --- plugin/settings.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugin/settings.gradle.kts b/plugin/settings.gradle.kts index b16b5eba..d32b11a4 100644 --- a/plugin/settings.gradle.kts +++ b/plugin/settings.gradle.kts @@ -10,6 +10,14 @@ dependencyResolutionManagement { versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) + + String kotlinVersion = providers.gradleProperty("kotlin_version").orNull + if (kotlinVersion != null && !kotlinVersion.isBlank()) { + // Override the default Kotlin version. + // The only intended use-case is for testing dev Kotlin builds using kotlinx-benchmark. + // The Kotlin version should not be overridden during regular development. + version("kotlin", kotlinVersion) + } } } }