Skip to content

Commit e22bd0a

Browse files
Abduqodiri Qurbonzodawoainikk
authored andcommitted
Temporary fix: Override Kotlin version in the plugin module
Fixes issue #236. Eventually, the plugin should use the version of Kotlin embedded into Gradle.
1 parent de61ff0 commit e22bd0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugin/settings.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ dependencyResolutionManagement {
1010
versionCatalogs {
1111
create("libs") {
1212
from(files("../gradle/libs.versions.toml"))
13+
14+
String kotlinVersion = providers.gradleProperty("kotlin_version").orNull
15+
if (kotlinVersion != null && !kotlinVersion.isBlank()) {
16+
// Override the default Kotlin version.
17+
// The only intended use-case is for testing dev Kotlin builds using kotlinx-benchmark.
18+
// The Kotlin version should not be overridden during regular development.
19+
version("kotlin", kotlinVersion)
20+
}
1321
}
1422
}
1523
}

0 commit comments

Comments
 (0)