8f79e833a8
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
66 lines
1.8 KiB
Kotlin
66 lines
1.8 KiB
Kotlin
import org.jetbrains.kotlin.ideaExt.idea
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testApi(project(":compiler:fir:entrypoint"))
|
|
testApi(project(":compiler:cli"))
|
|
testImplementation(project(":compiler:ir.tree"))
|
|
testImplementation(project(":compiler:backend.jvm.entrypoint"))
|
|
testImplementation(project(":compiler:backend.jvm.lower"))
|
|
testImplementation(intellijCore())
|
|
|
|
testRuntimeOnly(project(":core:descriptors.runtime"))
|
|
|
|
testImplementation(projectTests(":generators:test-generator"))
|
|
|
|
testApiJUnit5()
|
|
testApi(projectTests(":compiler:test-infrastructure"))
|
|
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
|
testApi(projectTests(":compiler:tests-compiler-utils"))
|
|
|
|
/*
|
|
* Actually those dependencies are needed only at runtime, but they
|
|
* declared as Api dependencies to propagate them to all modules
|
|
* which depend on current one
|
|
*/
|
|
testApi(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
|
|
testApi(commonDependency("one.util:streamex"))
|
|
testApi(commonDependency("net.java.dev.jna:jna"))
|
|
testApi(jpsModel()) { isTransitive = false }
|
|
testApi(jpsModelImpl()) { isTransitive = false }
|
|
testApi(intellijJavaRt())
|
|
|
|
testApi(toolsJar())
|
|
}
|
|
|
|
optInToExperimentalCompilerApi()
|
|
|
|
val generationRoot = projectDir.resolve("tests-gen")
|
|
|
|
sourceSets {
|
|
"main" { none() }
|
|
"test" {
|
|
projectDefault()
|
|
this.java.srcDir(generationRoot.name)
|
|
}
|
|
}
|
|
|
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|
apply(plugin = "idea")
|
|
idea {
|
|
this.module.generatedSourceDirs.add(generationRoot)
|
|
}
|
|
}
|
|
|
|
projectTest(jUnitMode = JUnitMode.JUnit5) {
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
testsJar()
|