diff options
Diffstat (limited to 'guide/build.gradle')
-rw-r--r-- | guide/build.gradle | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/guide/build.gradle b/guide/build.gradle index e01f660e..b4261e81 100644 --- a/guide/build.gradle +++ b/guide/build.gradle @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + /* * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ @@ -5,6 +7,19 @@ apply plugin: 'kotlin' apply plugin: 'kotlinx-serialization' +kotlin { + jvmToolchain(8) +} + +tasks.withType(KotlinCompile).configureEach { + kotlinOptions { + if (rootProject.ext.kotlin_lv_override != null) { + languageVersion = rootProject.ext.kotlin_lv_override + freeCompilerArgs += "-Xsuppress-version-warnings" + } + } +} + dependencies { testImplementation "org.jetbrains.kotlin:kotlin-test-junit" testImplementation "org.jetbrains.kotlinx:kotlinx-knit-test:$knit_version" |