[Build] Add jUnit dependencies in testApiJUnit5 to the implementation configuration
Adding these dependencies to the `api` configuration pollutes classpath for each dependant modules even if it doesn't need them. Instead, the dependencies should be declared more granularly if they're required #KTI-1349 In Progress
This commit is contained in:
committed by
Space Team
parent
0ecbb64c64
commit
53fde520d5
@@ -8,7 +8,7 @@ project.updateJvmTarget("1.8")
|
||||
dependencies {
|
||||
api(kotlinStdlib())
|
||||
compileOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
||||
testApi(libs.junit4)
|
||||
testImplementation(libs.junit4)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -8,7 +8,7 @@ project.updateJvmTarget("1.8")
|
||||
dependencies {
|
||||
api(kotlinStdlib())
|
||||
api(project(":kotlin-scripting-common"))
|
||||
testApi(libs.junit4)
|
||||
testImplementation(libs.junit4)
|
||||
testImplementation(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core"))
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ val testJsr223Runtime by configurations.creating {
|
||||
val testCompilationClasspath by configurations.creating
|
||||
|
||||
dependencies {
|
||||
testApi(libs.junit4)
|
||||
testImplementation(libs.junit4)
|
||||
testCompileOnly(project(":kotlin-scripting-jvm-host-unshaded"))
|
||||
testCompileOnly(project(":compiler:cli"))
|
||||
testCompileOnly(project(":core:util.runtime"))
|
||||
|
||||
@@ -9,7 +9,7 @@ dependencies {
|
||||
api(project(":kotlin-script-runtime"))
|
||||
api(kotlinStdlib())
|
||||
api(project(":kotlin-scripting-common"))
|
||||
testApi(libs.junit4)
|
||||
testImplementation(libs.junit4)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
Reference in New Issue
Block a user