Drop all redundant kotlin-reflect, kotlin-reflect-api dependencies
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
This commit is contained in:
@@ -27,7 +27,6 @@ dependencies {
|
||||
testApi(project(":kotlin-compiler-embeddable"))
|
||||
testApi(commonDependency("junit:junit"))
|
||||
testApi(project(":kotlin-test:kotlin-test-junit"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
compilerClasspath(project(":kotlin-reflect"))
|
||||
compilerClasspath(kotlinStdlib())
|
||||
compilerClasspath(commonDependency("org.jetbrains.intellij.deps", "trove4j"))
|
||||
|
||||
@@ -19,7 +19,6 @@ dependencies {
|
||||
runtimeOnly(project(":kotlin-scripting-compiler-embeddable"))
|
||||
testApi(project(":kotlin-test:kotlin-test-junit"))
|
||||
testApi(commonDependency("junit:junit"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
compileOnly(project(":compiler:cli-common")) // TODO: fix import (workaround for jps build)
|
||||
testCompileOnly(project(":core:util.runtime")) // TODO: fix import (workaround for jps build)
|
||||
testCompileOnly(project(":daemon-common")) // TODO: fix import (workaround for jps build)
|
||||
|
||||
@@ -9,7 +9,6 @@ dependencies {
|
||||
testRuntimeOnly(project(":kotlin-compiler-embeddable"))
|
||||
testRuntimeOnly(project(":kotlin-scripting-compiler-embeddable"))
|
||||
testRuntimeOnly(project(":kotlin-scripting-jvm-host"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
testRuntimeOnly(commonDependency("com.google.guava:guava"))
|
||||
testApi(commonDependency("junit"))
|
||||
}
|
||||
|
||||
@@ -7,11 +7,9 @@ dependencies {
|
||||
api(project(":examples:scripting-jvm-maven-deps"))
|
||||
api(project(":kotlin-scripting-jvm-host-unshaded"))
|
||||
api(kotlinStdlib())
|
||||
compileOnly(project(":kotlin-reflect-api"))
|
||||
compileOnly(project(":compiler:util"))
|
||||
|
||||
testRuntimeOnly(project(":kotlin-compiler"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
testRuntimeOnly(project(":kotlin-scripting-compiler"))
|
||||
|
||||
testApi(commonDependency("junit"))
|
||||
|
||||
@@ -9,7 +9,6 @@ dependencies {
|
||||
api(project(":kotlin-script-util"))
|
||||
testRuntimeOnly(project(":kotlin-compiler"))
|
||||
testRuntimeOnly(project(":kotlin-scripting-compiler"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
testApi(commonDependency("junit"))
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ dependencies {
|
||||
|
||||
testRuntimeOnly(project(":kotlin-scripting-jsr223-unshaded"))
|
||||
testRuntimeOnly(project(":kotlin-compiler"))
|
||||
testRuntimeOnly(project(":kotlin-reflect"))
|
||||
|
||||
embeddableTestRuntime(commonDependency("junit"))
|
||||
embeddableTestRuntime(project(":kotlin-scripting-jsr223"))
|
||||
|
||||
@@ -64,7 +64,6 @@ dependencies {
|
||||
|
||||
testImplementation(project(path = ":examples:annotation-processor-example"))
|
||||
testImplementation(kotlinStdlib("jdk8"))
|
||||
testImplementation(project(":kotlin-reflect"))
|
||||
testImplementation(project(":kotlin-android-extensions"))
|
||||
testImplementation(project(":kotlin-parcelize-compiler"))
|
||||
testImplementation(commonDependency("org.jetbrains.intellij.deps", "trove4j"))
|
||||
|
||||
@@ -39,7 +39,6 @@ dependencies {
|
||||
commonCompileOnly(project(":compiler:incremental-compilation-impl"))
|
||||
commonCompileOnly(project(":daemon-common"))
|
||||
commonCompileOnly(project(":native:kotlin-native-utils"))
|
||||
commonCompileOnly(project(":kotlin-reflect-api"))
|
||||
commonCompileOnly(project(":kotlin-android-extensions"))
|
||||
commonCompileOnly(project(":kotlin-build-common"))
|
||||
commonCompileOnly(project(":kotlin-compiler-runner"))
|
||||
@@ -53,7 +52,6 @@ dependencies {
|
||||
commonCompileOnly("com.android.tools.build:builder:3.6.4")
|
||||
commonCompileOnly("com.android.tools.build:builder-model:3.6.4")
|
||||
commonCompileOnly("org.codehaus.groovy:groovy-all:2.4.12")
|
||||
commonCompileOnly(project(":kotlin-reflect"))
|
||||
commonCompileOnly(intellijCore())
|
||||
commonCompileOnly(commonDependency("org.jetbrains.teamcity:serviceMessages"))
|
||||
commonCompileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.9")
|
||||
@@ -101,7 +99,6 @@ dependencies {
|
||||
}
|
||||
|
||||
testCompileOnly(project(":compiler"))
|
||||
testCompileOnly(project(":kotlin-reflect-api"))
|
||||
testCompileOnly(project(":kotlin-annotation-processing"))
|
||||
testCompileOnly(project(":kotlin-annotation-processing-gradle"))
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ dependencies {
|
||||
compileOnly("org.apache.maven:maven-core:3.0.3")
|
||||
testCompileOnly(project(":compiler:cli"))
|
||||
testApi(project(":kotlin-test:kotlin-test-junit"))
|
||||
testImplementation(project(":kotlin-reflect"))
|
||||
testApi(commonDependency("junit:junit"))
|
||||
testApi(project(":kotlin-scripting-compiler"))
|
||||
testRuntimeOnly(project(":kotlin-compiler"))
|
||||
|
||||
Reference in New Issue
Block a user