8f79e833a8
Review: https://jetbrains.team/p/kt/reviews/6753 All redundant I managed to find, of course. Why: I'm going to process all reflect dependencies in the next commits. Cleanup reflect dependency before processing. They are redundant because: 1. if `compileOnly` then compilation didn't break after dropping the dependency 2. if `test*` then tests didn't break after dropping the dependency. 3. `analysis/analysis-api-fir/analysis-api-fir-generator/build.gradle.kts` `compiler/fir/checkers/checkers-component-generator/build.gradle.kts` Drop `implementation(project(":kotlin-reflect-api"))` because the module already depends on `implementation(project(":kotlin-reflect"))` 4. `compiler/daemon/daemon-client/build.gradle.kts`. Drop `runtimeOnly` because after dropping `compileOnly` compilation didn't break (so `runtimeOnly` looks suspicious). Less safe than 1-3
58 lines
1.4 KiB
Kotlin
58 lines
1.4 KiB
Kotlin
description = "Kotlin Daemon Client"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
val nativePlatformVariants = listOf(
|
|
"windows-amd64",
|
|
"windows-i386",
|
|
"osx-amd64",
|
|
"osx-i386",
|
|
"linux-amd64",
|
|
"linux-i386",
|
|
"freebsd-amd64-libcpp",
|
|
"freebsd-amd64-libstdcpp",
|
|
"freebsd-i386-libcpp",
|
|
"freebsd-i386-libstdcpp"
|
|
)
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:util"))
|
|
compileOnly(project(":compiler:cli-common"))
|
|
compileOnly(project(":daemon-common"))
|
|
compileOnly(project(":js:js.frontend"))
|
|
compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
|
|
|
|
embedded(project(":daemon-common")) { isTransitive = false }
|
|
embedded(commonDependency("net.rubygrapefruit", "native-platform"))
|
|
nativePlatformVariants.forEach {
|
|
embedded(commonDependency("net.rubygrapefruit", "native-platform", "-$it"))
|
|
}
|
|
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
|
|
isTransitive = false
|
|
}
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions {
|
|
// This module is being run from within Gradle, older versions of which only have older kotlin-stdlib in the runtime classpath.
|
|
apiVersion = "1.4"
|
|
freeCompilerArgs += "-Xsuppress-version-warnings"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
publish()
|
|
|
|
runtimeJar()
|
|
|
|
sourcesJar()
|
|
|
|
javadocJar()
|