Files
kotlin-fork/core/descriptors.runtime/build.gradle.kts
T
Dmitriy Novozhilov e933c7b6d9 [Build] Remove testApi(intellijDep()) dependencies from all modules
Since IDEA moved most of it's jars to java 11 it's illegal to use them
  in our dependencies, so all modules which use `intellijDep()` should
  carefully specify which jars they use
2021-09-30 14:41:31 +03:00

46 lines
1.2 KiB
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
id("jps-compatible")
}
tasks
.matching { it.name == "compileKotlin" && it is KotlinCompile }
.configureEach {
(this as KotlinCompile).configureTaskToolchain(JdkMajorVersion.JDK_1_6)
}
tasks
.matching { it.name == "compileJava" && it is JavaCompile }
.configureEach {
(this as JavaCompile).configureTaskToolchain(JdkMajorVersion.JDK_1_6)
}
dependencies {
compileOnly(project(":core:util.runtime"))
compileOnly(project(":core:descriptors"))
compileOnly(project(":core:descriptors.jvm"))
testApi(projectTests(":compiler:tests-common"))
testApi(projectTests(":generators:test-generator"))
testApi(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijDep()) { includeJars("platform-concurrency", "idea_rt", rootProject = rootProject) }
testRuntimeOnly(jpsStandalone()) { includeJars("jps-model") }
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateRuntimeDescriptorTestsKt")
projectTest(parallel = true) {
dependsOn(":dist")
workingDir = rootDir
}
testsJar()