Add ext.jvmTarget and ext.javaHome to core:descriptors.runtime

After the following changes:
* 290aded94f
* 33de71f792

default values of jvmTarget and javaHome started to overwrite properties
set through compileJava in core:descriptors.runtime
This commit is contained in:
Alexey Tsvetkov
2019-07-02 17:30:38 +03:00
parent d3f9d0866a
commit 35dea296fa
+2 -9
View File
@@ -24,15 +24,8 @@ sourceSets {
"test" { projectDefault() }
}
val compileJava by tasks.getting(JavaCompile::class) {
sourceCompatibility = "1.6"
targetCompatibility = "1.6"
}
val compileKotlin by tasks.getting(KotlinCompile::class) {
kotlinOptions.jvmTarget = "1.6"
kotlinOptions.jdkHome = rootProject.extra["JDK_16"] as String
}
jvmTarget = "1.6"
javaHome = rootProject.extra["JDK_16"] as String
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateRuntimeDescriptorTestsKt")