Migrate repo to use JVM toolchains Gradle feature.

^KT-46972 Fixed
This commit is contained in:
Yahor Berdnikau
2021-06-29 15:42:02 +02:00
committed by Space
parent 08d831934a
commit 7789054547
67 changed files with 424 additions and 723 deletions
@@ -7,8 +7,7 @@ plugins {
`maven-publish`
}
jvmTarget = "1.6"
javaHome = rootProject.extra["JDK_16"] as String
project.configureJvmToolchain(JdkMajorVersion.JDK_1_6)
val builtins by configurations.creating {
isCanBeResolved = true
@@ -54,11 +53,6 @@ val copySources by task<Sync> {
into(File(buildDir, "src"))
}
tasks.withType<JavaCompile> {
sourceCompatibility = "1.6"
targetCompatibility = "1.6"
}
tasks.withType<KotlinCompile> {
dependsOn(copySources)
kotlinOptions {