[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
@@ -22,7 +22,7 @@ dependencies {
|
||||
api(project(":compiler:build-tools:kotlin-build-tools-api"))
|
||||
compileOnly(intellijCore())
|
||||
|
||||
testApi(libs.junit4)
|
||||
testImplementation(libs.junit4)
|
||||
testApi(project(":kotlin-test:kotlin-test-junit"))
|
||||
testApi(kotlinStdlib())
|
||||
testApi(projectTests(":kotlin-build-common"))
|
||||
|
||||
+1
-3
@@ -10,10 +10,8 @@ import org.jetbrains.kotlin.incremental.classpathDiff.ClasspathSnapshotTestCommo
|
||||
import org.jetbrains.kotlin.incremental.classpathDiff.ClasspathSnapshotTestCommon.SourceFile.JavaSourceFile
|
||||
import org.jetbrains.kotlin.incremental.classpathDiff.ClasspathSnapshotTestCommon.SourceFile.KotlinSourceFile
|
||||
import org.jetbrains.kotlin.incremental.classpathDiff.ClasspathSnapshotTestCommon.TestSourceFile
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.Assertions.assertFalse
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import java.io.File
|
||||
|
||||
private val testDataDir =
|
||||
|
||||
Reference in New Issue
Block a user