From bb8aa48416f82d4b98eb8dafa8bca822e0fc6dee Mon Sep 17 00:00:00 2001 From: skydoves Date: Wed, 5 Jun 2024 18:10:33 +0900 Subject: [PATCH] Jvm target to 17 --- app/build.gradle.kts | 9 -------- compose-stable-marker/build.gradle.kts | 31 +++++++++++++------------- gradle.properties | 2 +- gradle/libs.versions.toml | 2 +- 4 files changed, 17 insertions(+), 27 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f82e865..e289eb3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -45,15 +45,6 @@ android { } } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 - } - - kotlinOptions { - jvmTarget = libs.versions.jvmTarget.get() - } - lint { abortOnError = false } diff --git a/compose-stable-marker/build.gradle.kts b/compose-stable-marker/build.gradle.kts index d566d36..71c78d0 100644 --- a/compose-stable-marker/build.gradle.kts +++ b/compose-stable-marker/build.gradle.kts @@ -43,7 +43,7 @@ mavenPublishing { } kotlin { - jvmToolchain(11) + jvmToolchain(17) androidTarget { publishLibraryVariants("release") } jvm("desktop") iosX64() @@ -52,6 +52,19 @@ kotlin { macosX64() macosArm64() + js { + browser() + nodejs { + testTask { + useMocha { + timeout = "60s" + } + } + } + binaries.executable() + binaries.library() + } + @OptIn(ExperimentalWasmDsl::class) wasmJs { browser { @@ -90,6 +103,7 @@ kotlin { } } withJs() + withWasmJs() } } } @@ -104,19 +118,4 @@ android { defaultConfig { minSdk = Configurations.minSdk } - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 - } } - -java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 -} - -tasks.withType(JavaCompile::class.java).configureEach { - this.targetCompatibility = JavaVersion.VERSION_11.toString() - this.sourceCompatibility = JavaVersion.VERSION_11.toString() -} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index dee39a3..857ffb8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -39,7 +39,7 @@ android.defaults.buildfeatures.resvalues=false android.defaults.buildfeatures.shaders=false # KMP -kotlin.mpp.androidGradlePluginCompatibility.nowarn=tru +kotlin.mpp.androidGradlePluginCompatibility.nowarn=true # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index daa6e6e..35f41ce 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] kotlin = "2.0.0" dokka = "1.9.10" -jvmTarget = "11" +jvmTarget = "17" nexusPlugin = "0.26.0" kotlinxCoroutines = "1.7.2" kotlinxTime = "0.4.0"