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:
Alexey Tsvetkov
2018-02-22 06:26:06 +03:00
parent dc27a3f6d0
commit ccd6263787
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -8,7 +8,7 @@ plugins {
dependencies {
runtime(project(":kotlin-stdlib"))
runtime(project(":kotlin-script-runtime"))
runtime(project(":kotlin-reflect"))
runtimeOnly(project(":kotlin-reflect"))
}
noDefaultJar()