0a9498f7e2
There seems to be no point in configuring the compiler argument per project. This argument will be deleted soon anyway, when we remove support for JDK 1.6 & 1.7. Also remove `disableDeprecatedJvmTargetWarning`. It didn't have any effect in all modules where it was applied because these modules reassign `freeCompilerArgs` anyway, with `-Xsuppress-deprecated-jvm-target-warning` in it.
46 lines
1.2 KiB
Kotlin
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"))
|
|
|
|
testCompile(projectTests(":compiler:tests-common"))
|
|
testCompile(projectTests(":generators:test-generator"))
|
|
|
|
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
testRuntimeOnly(intellijDep()) { includeJars("platform-concurrency") }
|
|
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()
|