Skip to content

Commit

Permalink
build: drop usage of deprecated KOTLIN_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Dec 8, 2024
1 parent 8ea7ce1 commit 62b5235
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@file:Suppress("UnstableApiUsage")

import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
import org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION as KOTLIN_VERSION

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
Expand Down Expand Up @@ -54,16 +53,6 @@ dependencies {
testImplementation(libs.bundles.kotlin.testing)
}

// Enforce Kotlin version coherence
configurations.matching { it.name != "detekt" }.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin" && requested.name.startsWith("kotlin")) {
useVersion(KOTLIN_VERSION)
because("All Kotlin modules should use the same version, and compiler uses $KOTLIN_VERSION")
}
}
}

sourceSets {
main {
resources {
Expand Down

0 comments on commit 62b5235

Please sign in to comment.