Cleanup unused Kotlin daemon dependencies

This commit is contained in:
Yahor Berdnikau
2023-01-18 13:28:49 +01:00
parent 60a8bb9a73
commit 8f07a9cc61
7 changed files with 11 additions and 58 deletions
+10 -18
View File
@@ -1,4 +1,3 @@
description = "Kotlin Daemon Tests"
plugins {
@@ -6,24 +5,13 @@ plugins {
id("jps-compatible")
}
val ktorExcludesForDaemon: List<Pair<String, String>> by rootProject.extra
dependencies {
testApi(project(":kotlin-test:kotlin-test-jvm"))
testApi(kotlinStdlib())
testApi(commonDependency("junit:junit"))
testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
testApi(project(":kotlin-daemon-client"))
testCompileOnly(project(":kotlin-daemon"))
testApi(projectTests(":compiler:tests-common"))
testApi(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
testApi(commonDependency("io.ktor", "ktor-network")) {
ktorExcludesForDaemon.forEach { (group, module) ->
exclude(group = group, module = module)
}
}
testImplementation(kotlinStdlib())
testImplementation(project(":kotlin-test:kotlin-test-jvm"))
testImplementation(project(":kotlin-daemon"))
testImplementation(project(":kotlin-daemon-client"))
testImplementation(commonDependency("junit:junit"))
testImplementation(projectTests(":compiler:tests-common"))
testImplementation(intellijCore())
}
@@ -35,5 +23,9 @@ sourceSets {
projectTest(parallel = true) {
dependsOn(":dist")
workingDir = rootDir
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
val testClassesDirs = testSourceSet.output.classesDirs
doFirst {
systemProperty("kotlin.test.script.classpath", testClassesDirs.joinToString(File.pathSeparator))
}
}