Skip to content

Commit

Permalink
Set the api and language version explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
AzimMuradov committed Dec 18, 2023
1 parent 1708e96 commit a542f52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import io.gitlab.arturbosch.detekt.Detekt
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

plugins {
kotlin("multiplatform") version "1.9.21"
Expand Down Expand Up @@ -44,6 +45,10 @@ kotlin {

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
// kotlin compiler compatibility options
apiVersion.set(KotlinVersion.KOTLIN_1_9)
languageVersion.set(KotlinVersion.KOTLIN_1_9)

freeCompilerArgs.add("-Xexpect-actual-classes")
}

Expand Down

0 comments on commit a542f52

Please sign in to comment.