51 lines
1.5 KiB
Kotlin
51 lines
1.5 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testCompile(projectTests(":compiler"))
|
|
Platform[192].orHigher {
|
|
testCompileOnly(intellijDep()) {
|
|
includeJars("groovy-all", rootProject = rootProject)
|
|
}
|
|
testCompile(intellijDep()) {
|
|
includeJars("gson", rootProject = rootProject)
|
|
}
|
|
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
testRuntimeOnly(intellijPluginDep("java"))
|
|
}
|
|
compile("org.jsoup:jsoup:1.10.3")
|
|
if (System.getProperty("idea.active") != null) testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
|
|
testRuntime(project(":kotlin-reflect"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest(parallel = true) {
|
|
workingDir = rootDir
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
|
|
tasks.named<Test>("test") {
|
|
filter {
|
|
excludeTestsMatching("org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest")
|
|
}
|
|
}
|