Skip to content

Commit

Permalink
Update compilerOptions with K2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed May 28, 2024
1 parent 7f25946 commit d5b130e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions czan/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("multiplatform")
id("com.android.library")
Expand Down Expand Up @@ -44,10 +47,10 @@ kotlin {
androidTarget {
publishLibraryVariants("release")

compilations.all {
kotlinOptions {
jvmTarget = Dependencies.Versions.Compiler.jvmTarget
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(Dependencies.Versions.Compiler.jvmTarget))
}
}

Expand Down

0 comments on commit d5b130e

Please sign in to comment.