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
64 lines
1.9 KiB
Kotlin
64 lines
1.9 KiB
Kotlin
import TaskUtils.useAndroidEmulator
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testApi(project(":core:descriptors"))
|
|
testApi(project(":core:descriptors.jvm"))
|
|
testApi(project(":compiler:util"))
|
|
testApi(project(":compiler:cli"))
|
|
testApi(project(":compiler:frontend"))
|
|
testApi(project(":compiler:backend"))
|
|
testApi(project(":compiler:incremental-compilation-impl"))
|
|
testApi(project(":compiler:frontend.java"))
|
|
|
|
testApi(kotlinStdlib())
|
|
testApi(projectTests(":compiler:tests-common"))
|
|
testApi(commonDependency("junit:junit"))
|
|
testApi(projectTests(":compiler:test-infrastructure"))
|
|
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
|
testApi(projectTests(":compiler:tests-compiler-utils"))
|
|
testApi(projectTests(":compiler:tests-common-new"))
|
|
|
|
testApi(commonDependency("junit:junit"))
|
|
|
|
testApi(jpsModel())
|
|
testApi(jpsBuildTest())
|
|
|
|
testRuntimeOnly(intellijCore())
|
|
testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
|
|
|
|
testApi("org.junit.platform:junit-platform-launcher:${commonDependencyVersion("org.junit.platform", "")}")
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest {
|
|
dependsOn(":dist")
|
|
doFirst {
|
|
environment("kotlin.tests.android.timeout", "45")
|
|
}
|
|
|
|
if (project.hasProperty("teamcity") || project.hasProperty("kotlin.test.android.teamcity")) {
|
|
systemProperty("kotlin.test.android.teamcity", true)
|
|
}
|
|
|
|
project.findProperty("kotlin.test.android.path.filter")?.let {
|
|
systemProperty("kotlin.test.android.path.filter", it.toString())
|
|
}
|
|
|
|
workingDir = rootDir
|
|
useAndroidEmulator(this)
|
|
}
|
|
|
|
val generateAndroidTests by generator("org.jetbrains.kotlin.android.tests.CodegenTestsOnAndroidGenerator")
|
|
|
|
generateAndroidTests.workingDir = rootDir
|
|
generateAndroidTests.dependsOn(rootProject.tasks.named("dist"))
|