diff options
Diffstat (limited to 'build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts')
-rw-r--r-- | build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts b/build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts index c40ce57c..c07fc092 100644 --- a/build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts +++ b/build-logic/src/main/kotlin/org/jetbrains/conventions/kotlin-jvm.gradle.kts @@ -1,7 +1,6 @@ package org.jetbrains.conventions import org.jetbrains.configureDokkaVersion -import org.jetbrains.kotlin.gradle.dsl.KotlinVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { @@ -12,8 +11,6 @@ plugins { configureDokkaVersion() -val language_version: String by project - tasks.withType<KotlinCompile>().configureEach { compilerOptions { freeCompilerArgs.addAll( @@ -26,7 +23,7 @@ tasks.withType<KotlinCompile>().configureEach { ) ) allWarningsAsErrors.set(true) - languageVersion.set(KotlinVersion.fromVersion(language_version)) - apiVersion.set(KotlinVersion.fromVersion(language_version)) + languageVersion.set(dokkaBuild.kotlinLanguageLevel) + apiVersion.set(dokkaBuild.kotlinLanguageLevel) } } |