2a4f3f41aa
Review: https://jetbrains.team/p/kt/reviews/6753 Meaningful semantic change was splitted into 5 commits to simplify the change review. Sinle commit would be too big. Why replace source to binary: to get rid of kotlin-reflect in Kotlin plugin artifact KTIJ-22276 Note: Kotlin Maven artifacts (./gradlew publish) changed their dependency on kotlin-reflect
49 lines
1.1 KiB
Kotlin
49 lines
1.1 KiB
Kotlin
description = "Kotlin Daemon"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
val ktorExcludesForDaemon : List<Pair<String, String>> by rootProject.extra
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:cli"))
|
|
compileOnly(project(":compiler:cli-js"))
|
|
compileOnly(project(":compiler:incremental-compilation-impl"))
|
|
compileOnly(project(":daemon-common-new"))
|
|
|
|
compileOnly(intellijCore())
|
|
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
|
|
|
runtimeOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
|
|
|
embedded(project(":daemon-common")) { isTransitive = false }
|
|
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
|
|
isTransitive = false
|
|
}
|
|
}
|
|
|
|
optInToExperimentalCompilerApi()
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
publish()
|
|
|
|
runtimeJar()
|
|
|
|
sourcesJar()
|
|
|
|
javadocJar()
|
|
|
|
tasks {
|
|
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
|
kotlinOptions {
|
|
freeCompilerArgs += "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi"
|
|
}
|
|
}
|
|
}
|