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.
This commit is contained in:
Alexander Udalov
2017-11-10 14:11:12 +01:00
parent 329fbd8fa8
commit aca74cef0e
22 changed files with 33 additions and 9 deletions
@@ -21,6 +21,7 @@ dependencies {
testCompile(projectTests(":idea:idea-android"))
testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompile(commonDep("junit:junit"))
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":idea:idea-jvm"))
testRuntime(project(":plugins:android-extensions-jps"))
testRuntime(project(":sam-with-receiver-ide-plugin"))
+1
View File
@@ -25,6 +25,7 @@ dependencies {
testCompileOnly(ideaSdkDeps("jps-builders"))
testCompile(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
testCompile(ideaPluginDeps("*.jar", plugin = "android", subdir = "lib/jps"))
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":jps-plugin"))
testRuntime(projectTests(":compiler:tests-common-jvm6"))
testRuntime(ideaSdkDeps("*.jar"))
@@ -19,6 +19,7 @@ dependencies {
testCompile(projectTests(":compiler:tests-common"))
testCompile(ideaSdkDeps("idea", "idea_rt", "openapi"))
testCompile(commonDep("junit:junit"))
testRuntime(projectDist(":kotlin-reflect"))
}
sourceSets {
+1
View File
@@ -16,6 +16,7 @@ dependencies {
testCompile(project(":compiler:cli"))
testCompile(project(":idea:idea-test-framework"))
testCompileOnly(ideaSdkDeps("idea_rt"))
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(ideaSdkDeps("*.jar"))
testRuntime(ideaPluginDeps("*.jar", plugin = "junit"))
testRuntime(ideaPluginDeps("*.jar", plugin = "gradle"))