diff options
Diffstat (limited to 'formats/hocon/build.gradle')
-rw-r--r-- | formats/hocon/build.gradle | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/formats/hocon/build.gradle b/formats/hocon/build.gradle index 0da4b083..c5fae36e 100644 --- a/formats/hocon/build.gradle +++ b/formats/hocon/build.gradle @@ -1,3 +1,6 @@ +import org.jetbrains.kotlin.gradle.dsl.KotlinVersion +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. */ @@ -12,6 +15,15 @@ compileKotlin { } } +tasks.withType(KotlinCompile).configureEach { + kotlinOptions { + if (rootProject.ext.kotlin_lv_override != null) { + languageVersion = rootProject.ext.kotlin_lv_override + freeCompilerArgs += "-Xsuppress-version-warnings" + } + } +} + java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 @@ -19,8 +31,9 @@ java { dependencies { - implementation project(':kotlinx-serialization-core') + api project(':kotlinx-serialization-core') api 'org.jetbrains.kotlin:kotlin-stdlib' + api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' api 'com.typesafe:config:1.4.1' |