Replace dependencies on kotlin-reflect with kotlin-reflect-api

See the previous commit for information on the kotlin-reflect vs
kotlin-reflect-api distinction.

Add kotlin-reflect as an explicit runtime dependency of most of the test
configurations because even though they all depend on tests-common, the
runtime dependency on kotlin-reflect is not exported from tests-common
to other modules because the projectTests dependency is not transitive.

Original commit: aca74cef0e
This commit is contained in:
Alexander Udalov
2017-11-10 14:11:12 +01:00
parent e06f002f45
commit 53e90b6d40
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ apply { plugin("kotlin") }
dependencies {
compile(projectDist(":kotlin-stdlib"))
compileOnly(project(":kotlin-reflect-api"))
compile(project(":compiler:util"))
compile(project(":compiler:cli-common"))
compile(project(":compiler:frontend.java"))
+2
View File
@@ -13,6 +13,7 @@ dependencies {
compile(projectRuntimeJar(":kotlin-preloader"))
compile(project(":idea:idea-jps-common"))
compile(ideaSdkDeps("jps-builders", "jps-builders-6", subdir = "jps"))
testCompileOnly(project(":kotlin-reflect-api"))
testCompile(project(":compiler:incremental-compilation-impl"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":compiler:incremental-compilation-impl"))
@@ -24,6 +25,7 @@ dependencies {
compilerModules.forEach {
testRuntime(project(it))
}
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(ideaSdkCoreDeps("*.jar"))
testRuntime(ideaSdkDeps("*.jar"))
testRuntime(ideaSdkDeps("*.jar", subdir = "jps/test"))