Skip to content

Commit

Permalink
Temporary fix: Override Kotlin version in the plugin module
Browse files Browse the repository at this point in the history
Fixes issue #236.
Eventually, the plugin should use the version of Kotlin embedded into Gradle.
  • Loading branch information
Abduqodiri Qurbonzoda authored and woainikk committed Sep 23, 2024
1 parent de61ff0 commit e22bd0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down

0 comments on commit e22bd0a

Please sign in to comment.