Cleanup unused Kotlin daemon dependencies
This commit is contained in:
@@ -78,17 +78,6 @@ val ideaSandboxDir = "$commonLocalDataDir/ideaSandbox"
|
|||||||
val artifactsDir = "$distDir/artifacts"
|
val artifactsDir = "$distDir/artifacts"
|
||||||
val ideaPluginDir = "$artifactsDir/ideaPlugin/Kotlin"
|
val ideaPluginDir = "$artifactsDir/ideaPlugin/Kotlin"
|
||||||
|
|
||||||
extra["ktorExcludesForDaemon"] = listOf(
|
|
||||||
"org.jetbrains.kotlin" to "kotlin-reflect",
|
|
||||||
"org.jetbrains.kotlin" to "kotlin-stdlib",
|
|
||||||
"org.jetbrains.kotlin" to "kotlin-stdlib-common",
|
|
||||||
"org.jetbrains.kotlin" to "kotlin-stdlib-jdk8",
|
|
||||||
"org.jetbrains.kotlin" to "kotlin-stdlib-jdk7",
|
|
||||||
"org.jetbrains.kotlinx" to "kotlinx-coroutines-jdk8",
|
|
||||||
"org.jetbrains.kotlinx" to "kotlinx-coroutines-core",
|
|
||||||
"org.jetbrains.kotlinx" to "kotlinx-coroutines-core-common"
|
|
||||||
)
|
|
||||||
|
|
||||||
// TODO: use "by extra()" syntax where possible
|
// TODO: use "by extra()" syntax where possible
|
||||||
extra["distLibDir"] = project.file(distLibDir)
|
extra["distLibDir"] = project.file(distLibDir)
|
||||||
extra["commonLocalDataDir"] = project.file(commonLocalDataDir)
|
extra["commonLocalDataDir"] = project.file(commonLocalDataDir)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ plugins {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":kotlin-daemon-client"))
|
implementation(project(":kotlin-daemon-client"))
|
||||||
implementation(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
|
||||||
|
|
||||||
compileOnly(project(":compiler:cli-common"))
|
compileOnly(project(":compiler:cli-common"))
|
||||||
compileOnly(project(":kotlin-preloader"))
|
compileOnly(project(":kotlin-preloader"))
|
||||||
|
|||||||
@@ -5,22 +5,15 @@ plugins {
|
|||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
}
|
}
|
||||||
|
|
||||||
val ktorExcludesForDaemon : List<Pair<String, String>> by rootProject.extra
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":compiler:cli"))
|
compileOnly(project(":compiler:cli"))
|
||||||
compileOnly(project(":compiler:cli-js"))
|
|
||||||
compileOnly(project(":compiler:incremental-compilation-impl"))
|
compileOnly(project(":compiler:incremental-compilation-impl"))
|
||||||
|
|
||||||
compileOnly(intellijCore())
|
compileOnly(intellijCore())
|
||||||
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
||||||
|
|
||||||
runtimeOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
runtimeOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
||||||
|
|
||||||
embedded(project(":daemon-common")) { isTransitive = false }
|
embedded(project(":daemon-common")) { isTransitive = false }
|
||||||
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
|
|
||||||
isTransitive = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
optInToExperimentalCompilerApi()
|
optInToExperimentalCompilerApi()
|
||||||
@@ -33,15 +26,5 @@ sourceSets {
|
|||||||
publish()
|
publish()
|
||||||
|
|
||||||
runtimeJar()
|
runtimeJar()
|
||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
tasks {
|
|
||||||
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
|
||||||
kotlinOptions {
|
|
||||||
freeCompilerArgs += "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -22,10 +22,7 @@ val nativePlatformVariants = listOf(
|
|||||||
)
|
)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":compiler:util"))
|
|
||||||
compileOnly(project(":compiler:cli-common"))
|
|
||||||
compileOnly(project(":daemon-common"))
|
compileOnly(project(":daemon-common"))
|
||||||
compileOnly(project(":js:js.frontend"))
|
|
||||||
compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
|
compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
|
||||||
|
|
||||||
embedded(project(":daemon-common")) { isTransitive = false }
|
embedded(project(":daemon-common")) { isTransitive = false }
|
||||||
@@ -33,9 +30,6 @@ dependencies {
|
|||||||
nativePlatformVariants.forEach {
|
nativePlatformVariants.forEach {
|
||||||
embedded(commonDependency("net.rubygrapefruit", "native-platform", "-$it"))
|
embedded(commonDependency("net.rubygrapefruit", "native-platform", "-$it"))
|
||||||
}
|
}
|
||||||
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
|
|
||||||
isTransitive = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompilationTask<*>> {
|
tasks.withType<KotlinCompilationTask<*>> {
|
||||||
@@ -57,7 +51,5 @@ sourceSets {
|
|||||||
publish()
|
publish()
|
||||||
|
|
||||||
runtimeJar()
|
runtimeJar()
|
||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ dependencies {
|
|||||||
api(project(":compiler:cli-common"))
|
api(project(":compiler:cli-common"))
|
||||||
api(project(":kotlin-build-common"))
|
api(project(":kotlin-build-common"))
|
||||||
api(kotlinStdlib())
|
api(kotlinStdlib())
|
||||||
compileOnly(project(":js:js.config"))
|
|
||||||
compileOnly(intellijCore())
|
|
||||||
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
description = "Kotlin Daemon Tests"
|
description = "Kotlin Daemon Tests"
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
@@ -6,24 +5,13 @@ plugins {
|
|||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
}
|
}
|
||||||
|
|
||||||
val ktorExcludesForDaemon: List<Pair<String, String>> by rootProject.extra
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testApi(project(":kotlin-test:kotlin-test-jvm"))
|
testImplementation(kotlinStdlib())
|
||||||
testApi(kotlinStdlib())
|
testImplementation(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
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(project(":kotlin-daemon"))
|
testImplementation(project(":kotlin-daemon"))
|
||||||
|
testImplementation(project(":kotlin-daemon-client"))
|
||||||
|
testImplementation(commonDependency("junit:junit"))
|
||||||
|
testImplementation(projectTests(":compiler:tests-common"))
|
||||||
testImplementation(intellijCore())
|
testImplementation(intellijCore())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,5 +23,9 @@ sourceSets {
|
|||||||
projectTest(parallel = true) {
|
projectTest(parallel = true) {
|
||||||
dependsOn(":dist")
|
dependsOn(":dist")
|
||||||
workingDir = rootDir
|
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))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ dependencies {
|
|||||||
testImplementation(projectTests(":compiler:test-infrastructure"))
|
testImplementation(projectTests(":compiler:test-infrastructure"))
|
||||||
testImplementation(projectTests(":generators:test-generator"))
|
testImplementation(projectTests(":generators:test-generator"))
|
||||||
testApiJUnit5()
|
testApiJUnit5()
|
||||||
|
testImplementation(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
||||||
|
|
||||||
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
||||||
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
|
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
|
||||||
|
|||||||
Reference in New Issue
Block a user