File tree Expand file tree Collapse file tree
build-logic/src/main/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ dependencies {
4747[ badge-license ] : https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat
4848
4949<!-- TAG_DEPENDENCIES -->
50- [ badge-kotlin ] : https://img.shields.io/badge/kotlin-2.2.10 -blue.svg?logo=kotlin
50+ [ badge-kotlin ] : https://img.shields.io/badge/kotlin-2.2.20 -blue.svg?logo=kotlin
5151
5252<!-- TAG_PLATFORMS -->
5353[ badge-platform-android ] : http://img.shields.io/badge/-android-6EDB8D.svg?style=flat
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import io.matthewnelson.kmp.configuration.extension.KmpConfigurationExtension
1717import io.matthewnelson.kmp.configuration.extension.container.target.KmpConfigurationContainerDsl
1818import org.gradle.api.Action
1919import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
20+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2021
2122fun KmpConfigurationExtension.configureShared (
2223 java9ModuleName : String? = null,
@@ -73,6 +74,15 @@ fun KmpConfigurationExtension.configureShared(
7374
7475 if (publish) kotlin { explicitApi() }
7576
77+ if (publish) kotlin {
78+ @Suppress(" DEPRECATION" )
79+ compilerOptions {
80+ freeCompilerArgs.add(" -Xsuppress-version-warnings" )
81+ apiVersion.set(KotlinVersion .KOTLIN_1_8 )
82+ languageVersion.set(KotlinVersion .KOTLIN_1_8 )
83+ }
84+ }
85+
7686 action.execute(this )
7787 }
7888}
You can’t perform that action at this time.
0 commit comments