[Build] Move JUnit dependencies into the version catalog

The `kotlin-test` dependencies are left untouched as changing them affects publications, thus these versions are independent from the used inside our build
#KTI-1349 In Progress
This commit is contained in:
Alexander.Likhachev
2023-08-16 15:15:22 +02:00
committed by Space Team
parent 9d43945b19
commit 357d12fc8e
62 changed files with 120 additions and 86 deletions
@@ -6243,7 +6243,7 @@ dependencies {
implementation kotlinCompilerModule
api project(path: ':kotlin-native:backend.native', configuration: 'cli_bcApiElements')
api RepoDependencies.commonDependency(project, "junit")
api libs.junit4
}
project.afterEvaluate {
@@ -19,6 +19,14 @@ plugins {
id("kotlin-daemon-config")
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../../gradle/libs.versions.toml"))
}
}
}
buildscript {
val buildGradlePluginVersion = extra["kotlin.build.gradlePlugin.version"]
dependencies {
+1 -1
View File
@@ -44,7 +44,7 @@ dependencies {
implementation project(":kotlin-stdlib")
implementation project(path: ':kotlin-native:backend.native', configuration: 'cli_bcApiElements')
implementation project(":kotlin-native:utilities:basic-utils")
testImplementation RepoDependencies.commonDependency(project, "junit")
testImplementation libs.junit4
testImplementation project(":kotlin-test:kotlin-test-junit")
}
@@ -51,7 +51,7 @@ dependencies {
kotlinNativeEmbedded(project(":kotlin-native:klib"))
kotlinNativeEmbedded(project(":kotlin-native:endorsedLibraries:kotlinx.cli", "jvmRuntimeElements"))
kotlinNativeEmbedded(project(":kotlin-compiler")) { isTransitive = false }
testImplementation(commonDependency("junit:junit"))
testImplementation(libs.junit4)
testImplementation(project(":kotlin-test:kotlin-test-junit"))
}