From 2a27a96f5ec125a66b6d0d22042b99298e9feb4b Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 4 Sep 2024 16:25:55 +0800 Subject: [PATCH 1/4] Kotlin 2.0.20 Strong skipping mode is the default from Kotlin 2.0.20. https://github.com/JetBrains/kotlin/releases/tag/v2.0.20 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c64ab68a..c004a11f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ compose = "1.6.11" jewel = "0.23.1" jna = "5.14.0" junit4 = "4.13.2" -kotlin = "2.0.0" +kotlin = "2.0.20" lifecycle = "2.8.0" rstaui = "3.3.1" rsyntaxtextarea="3.4.0" From 475e0bc5324c437423ae7cc39b6e95d447517ac9 Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 4 Sep 2024 16:29:27 +0800 Subject: [PATCH 2/4] Declare stabilityConfigurationFile and reportsDestination --- build.gradle.kts | 5 +++++ stability_config.conf | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 stability_config.conf diff --git a/build.gradle.kts b/build.gradle.kts index b1fa20bd..4f0c5ab2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -70,6 +70,11 @@ kotlin { } } +composeCompiler { + stabilityConfigurationFile = layout.projectDirectory.file("stability_config.conf") + reportsDestination = layout.buildDirectory.dir("compose_compiler") +} + compose.desktop { application { mainClass = "dev.romainguy.kotlin.explorer.KotlinExplorerKt" diff --git a/stability_config.conf b/stability_config.conf new file mode 100644 index 00000000..0de19968 --- /dev/null +++ b/stability_config.conf @@ -0,0 +1,7 @@ +androidx.collection.* + +java.nio.file.Path + +kotlin.collections.* + +kotlinx.coroutines.CoroutineScope From 0edfc3138d90bd41ad536b60f1191bc3e2e1afab Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 6 Sep 2024 07:22:53 +0800 Subject: [PATCH 3/4] Rename --- build.gradle.kts | 2 +- stability_config.conf => compose-stability.config | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename stability_config.conf => compose-stability.config (100%) diff --git a/build.gradle.kts b/build.gradle.kts index 88e2d771..13e24793 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -71,7 +71,7 @@ kotlin { } composeCompiler { - stabilityConfigurationFile = layout.projectDirectory.file("stability_config.conf") + stabilityConfigurationFile = layout.projectDirectory.file("compose-stability.config") reportsDestination = layout.buildDirectory.dir("compose_compiler") } diff --git a/stability_config.conf b/compose-stability.config similarity index 100% rename from stability_config.conf rename to compose-stability.config From 88e8db5077eb2cc236f332ebbc12937b3fad6a8c Mon Sep 17 00:00:00 2001 From: Goooler Date: Fri, 6 Sep 2024 07:26:43 +0800 Subject: [PATCH 4/4] Rename --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 13e24793..ac70c829 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,7 +72,7 @@ kotlin { composeCompiler { stabilityConfigurationFile = layout.projectDirectory.file("compose-stability.config") - reportsDestination = layout.buildDirectory.dir("compose_compiler") + reportsDestination = layout.buildDirectory.dir("compose-compiler") } compose.desktop {