[Build] Use 1.8 target version instead of 1.6 while using JPS build

This commit is contained in:
Dmitriy Novozhilov
2022-05-12 13:39:28 +03:00
committed by teamcity
parent 73a571ef7f
commit 993021a71d
3 changed files with 21 additions and 3 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ plugins {
tasks
.matching { it.name == "compileKotlin" && it is KotlinCompile }
.configureEach {
(this as KotlinCompile).configureTaskToolchain(JdkMajorVersion.JDK_1_6)
(this as KotlinCompile).configureTaskToolchain(chooseJdk18ForJpsBuild(JdkMajorVersion.JDK_1_6))
}
tasks
.matching { it.name == "compileJava" && it is JavaCompile }
.configureEach {
(this as JavaCompile).configureTaskToolchain(JdkMajorVersion.JDK_1_6)
(this as JavaCompile).configureTaskToolchain(chooseJdk18ForJpsBuild(JdkMajorVersion.JDK_1_6))
}
dependencies {