Skip to content

Commit

Permalink
Update Kotlin to 1.9.21
Browse files Browse the repository at this point in the history
  • Loading branch information
AzimMuradov committed Dec 10, 2023
1 parent 433d4c3 commit 9705706
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.gradle.jvm.tasks.Jar
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.jvm.tasks.Jar
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_4

plugins {
kotlin("multiplatform") version "1.8.22"
kotlin("multiplatform") version "1.9.21"
id("org.jetbrains.dokka") version "1.8.20"
`maven-publish`
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
Expand Down Expand Up @@ -40,6 +42,13 @@ apply(plugin = "io.github.gradle-nexus.publish-plugin")

kotlin {
explicitApi()

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
apiVersion.set(KOTLIN_1_4)
languageVersion.set(KOTLIN_1_4)
}

jvm {
compilations.all {
// kotlin compiler compatibility options
Expand All @@ -59,6 +68,14 @@ kotlin {
}
}
nodejs()

compilations.all {
// kotlin compiler compatibility options
kotlinOptions {
apiVersion = "1.9"
languageVersion = "1.9"
}
}
}
android {
publishLibraryVariants("release", "debug")
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
org.gradle.jvmargs=-Xmx2048m
# see https://kotlinlang.org/docs/whatsnew18.html#sourcedirectories
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.applyDefaultHierarchyTemplate=false

0 comments on commit 9705706

Please sign in to comment.