Use runtimeOnly dependency in kotlin-reflect
"kotlin-reflect" is a shadow jar which breaks incremental compilation to avoid non-incremental builds, project should add * `compileOnly` dependency on ":kotlin-reflect-api" * `runtimeOnly` dependency on ":kotlin-reflect" * `runtime` dependency is not recommended because it leaks into compile * classpath through transitive dependencies
This commit is contained in:
@@ -11,7 +11,7 @@ dependencies {
|
||||
compileOnly(project(":kotlin-reflect-api"))
|
||||
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
runtime(project(":kotlin-reflect"))
|
||||
runtimeOnly(project(":kotlin-reflect"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -8,7 +8,7 @@ plugins {
|
||||
dependencies {
|
||||
runtime(project(":kotlin-stdlib"))
|
||||
runtime(project(":kotlin-script-runtime"))
|
||||
runtime(project(":kotlin-reflect"))
|
||||
runtimeOnly(project(":kotlin-reflect"))
|
||||
}
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
Reference in New Issue
Block a user