Skip to content

Commit ac701a9

Browse files
authored
Lower supported KotlinVersion to 1.8 (#15)
1 parent d5f28e0 commit ac701a9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

build-logic/src/main/kotlin/-KmpConfigurationExtension.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import io.matthewnelson.kmp.configuration.extension.KmpConfigurationExtension
1717
import io.matthewnelson.kmp.configuration.extension.container.target.KmpConfigurationContainerDsl
1818
import org.gradle.api.Action
1919
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
20+
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2021

2122
fun 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
}

0 commit comments

Comments
 (0)