Files
kotlin-fork/compiler/tests-spec/build.gradle.kts
T
Nikita Bobko 8f79e833a8 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
2022-08-22 15:42:57 +02:00

54 lines
1.4 KiB
Kotlin

plugins {
kotlin("jvm")
id("jps-compatible")
}
dependencies {
testApi(projectTests(":compiler"))
testImplementation(projectTests(":compiler:test-infrastructure"))
testImplementation(projectTests(":compiler:tests-common-new"))
testApi(commonDependency("com.google.code.gson:gson"))
testApi(commonDependency("org.codehaus.groovy:groovy"))
testApi(commonDependency("org.codehaus.groovy:groovy-xml"))
api("org.jsoup:jsoup:1.14.2")
testRuntimeOnly(project(":core:descriptors.runtime"))
testApiJUnit5(vintageEngine = true)
}
sourceSets {
"main" { }
"test" { projectDefault() }
}
testsJar()
projectTest(parallel = true) {
workingDir = rootDir
dependsOn(":dist")
}
val generateSpecTests by generator("org.jetbrains.kotlin.spec.utils.tasks.GenerateSpecTestsKt")
val generateFeatureInteractionSpecTestData by generator("org.jetbrains.kotlin.spec.utils.tasks.GenerateFeatureInteractionSpecTestDataKt")
val printSpecTestsStatistic by generator("org.jetbrains.kotlin.spec.utils.tasks.PrintSpecTestsStatisticKt")
val specConsistencyTests by task<Test> {
workingDir = rootDir
filter {
includeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
}
useJUnitPlatform()
}
tasks.named<Test>("test") {
filter {
excludeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
}
}