From 25dd3c2cb93e5e903d092ed72ed9e19c6c4d8fff Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Thu, 26 Oct 2023 14:16:55 +0100 Subject: [PATCH] Update IJ Platform 232 to 2023.2.4 (#209) * Update IJP-232 to 23.2.4 * Only run check on appropriate platform version --- .../jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt | 9 +++++++++ gradle/libs.versions.toml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt index 25af76cc2..9a9a369ac 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt @@ -21,8 +21,17 @@ open class CheckIdeaVersionTask : DefaultTask() { init { group = "jewel" + + val currentPlatformVersion = project.supportedIJVersion() + enabled = project.name.endsWith(getPlatformSuffix(currentPlatformVersion)) } + private fun getPlatformSuffix(currentPlatformVersion: SupportedIJVersion) = + when (currentPlatformVersion) { + SupportedIJVersion.IJ_232 -> "232" + SupportedIJVersion.IJ_233 -> "233" + } + @TaskAction fun generate() { val json = Json { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9ea0f6cdb..779c1196c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ composeDesktop = "1.5.2" coroutines = "1.7.3" detekt = "1.23.1" dokka = "1.8.20" -idea232 = "232.10072.27" +idea232 = "232.10203.10" idea233 = "233.10527.20-EAP-SNAPSHOT" ideaGradlePlugin = "1.16.0" javaSarif = "2.0"