Skip to content

Commit

Permalink
🚑️ Fix Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceglb committed Nov 30, 2024
1 parent e85e289 commit 530005b
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
4 changes: 4 additions & 0 deletions filekit-coil/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidLibrary)
Expand All @@ -17,6 +18,9 @@ kotlin {
// Android
androidTarget {
publishLibraryVariants("release")
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

// JVM / Desktop
Expand Down
4 changes: 4 additions & 0 deletions filekit-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidLibrary)
Expand All @@ -15,6 +16,9 @@ kotlin {
// Android
androidTarget {
publishLibraryVariants("release")
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

// JVM / Desktop
Expand Down
4 changes: 4 additions & 0 deletions filekit-dialog-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidLibrary)
Expand All @@ -17,6 +18,9 @@ kotlin {
// Android
androidTarget {
publishLibraryVariants("release")
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

// JVM / Desktop
Expand Down
4 changes: 4 additions & 0 deletions filekit-dialog/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidLibrary)
Expand All @@ -16,6 +17,9 @@ kotlin {
// Android
androidTarget {
publishLibraryVariants("release")
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

// JVM / Desktop
Expand Down
7 changes: 6 additions & 1 deletion samples/sample-compose/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig

plugins {
Expand Down Expand Up @@ -35,7 +36,11 @@ kotlin {
}
}

androidTarget()
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

jvm("desktop")

Expand Down
7 changes: 6 additions & 1 deletion samples/sample-core/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidApplication)
Expand All @@ -12,7 +13,11 @@ kotlin {
// https://kotlinlang.org/docs/multiplatform-hierarchy.html#creating-additional-source-sets
applyDefaultHierarchyTemplate()

androidTarget()
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

jvm("desktop")

Expand Down
7 changes: 6 additions & 1 deletion samples/sample-core/shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.androidLibrary)
Expand All @@ -10,7 +11,11 @@ kotlin {
applyDefaultHierarchyTemplate()

// Android
androidTarget()
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

// JVM / Desktop
jvm()
Expand Down

0 comments on commit 530005b

Please sign in to comment.