2e515f3945
But still compile stdlib, reflect, kotlin.test and scripting runtimes with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7. #KT-45165 Fixed
46 lines
1.1 KiB
Kotlin
46 lines
1.1 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(intellijCore())
|
|
|
|
kotlinCompilerClasspath(project(":libraries:tools:stdlib-compiler-classpath"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateRuntimeDescriptorTestsKt")
|
|
|
|
projectTest(parallel = true) {
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
}
|
|
|
|
testsJar()
|