Replace kotlin-test project dependencies in the project
Use dependency helper function that chooses whether to take them from the bootstrap repository or from a configuration of kotlin-test KT-61969
This commit is contained in:
committed by
Space Team
parent
f07bf70aa7
commit
d2aae67e03
@@ -4,7 +4,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
testImplementation(kotlinStdlib("jdk8"))
|
||||
testImplementation(project(":kotlin-test:kotlin-test-junit5"))
|
||||
testImplementation(kotlinTest("junit5"))
|
||||
testApi(platform(libs.junit.bom))
|
||||
testImplementation(libs.junit.jupiter.api)
|
||||
testRuntimeOnly(libs.junit.jupiter.engine)
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-test-junit</artifactId>
|
||||
<artifactId>kotlin-test</artifactId>
|
||||
<version>ArtifactsTest.version</version>
|
||||
<scope>runtime</scope>
|
||||
<optional>true</optional>
|
||||
|
||||
@@ -74,7 +74,9 @@ fun Project.kotlinStdlib(suffix: String? = null, classifier: String? = null): An
|
||||
*/
|
||||
@JvmOverloads
|
||||
fun Project.kotlinTest(suffix: String? = null, classifier: String? = null): Any {
|
||||
return run {
|
||||
return if (kotlinBuildProperties.isJpsBuildEnabled) {
|
||||
kotlinDep(listOfNotNull("test", suffix?.lowercase()).joinToString("-"), bootstrapKotlinVersion, classifier)
|
||||
} else {
|
||||
val elementsType = when (classifier) {
|
||||
null -> "Runtime"
|
||||
"sources" -> "Sources"
|
||||
|
||||
Reference in New Issue
Block a user