Build: add temporary option to suppress jdkHome warning

This commit is contained in:
Alexander Udalov
2021-05-27 16:28:23 +02:00
parent aaffd73feb
commit 1dfcec3a93
6 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ val compileJava by tasks.getting(JavaCompile::class) {
val compileKotlin by tasks.getting(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "1.6"
jdkHome = rootProject.extra["JDK_16"] as String
jdkHome = (rootProject.extra["JDK_16"] as String).takeUnless { kotlinBuildProperties.suppressJdkHomeWarning }
freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
}
}