diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 0ccce7af4..11c2ce89b 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -13,10 +13,6 @@ gradlePlugin { id = "android-studio-releases-generator" implementationClass = "org.jetbrains.jewel.buildlogic.demodata.AndroidStudioReleasesGeneratorPlugin" } - register("ide-version-check") { - id = "ide-version-check" - implementationClass = "org.jetbrains.jewel.buildlogic.ideversion.IdeVersionReaderPlugin" - } } } diff --git a/buildSrc/src/main/kotlin/ide-version-checker.gradle.kts b/buildSrc/src/main/kotlin/ide-version-checker.gradle.kts new file mode 100644 index 000000000..fa9960126 --- /dev/null +++ b/buildSrc/src/main/kotlin/ide-version-checker.gradle.kts @@ -0,0 +1,3 @@ +import org.jetbrains.jewel.buildlogic.ideversion.CheckIdeaVersionTask + +tasks.register("checkLatestIntelliJPlatformBuild") diff --git a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/IdeVersionReaderPlugin.kt b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt similarity index 94% rename from buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/IdeVersionReaderPlugin.kt rename to buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt index 22083e43a..25af76cc2 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/IdeVersionReaderPlugin.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CheckIdeaVersionTask.kt @@ -5,23 +5,11 @@ import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream import org.gradle.api.DefaultTask import org.gradle.api.GradleException -import org.gradle.api.Plugin -import org.gradle.api.Project import org.gradle.api.tasks.TaskAction -import org.gradle.kotlin.dsl.register import supportedIJVersion import java.io.IOException import java.net.URL -abstract class IdeVersionReaderPlugin : Plugin { - - final override fun apply(target: Project) { - with(target) { - tasks.register("checkLatestIntelliJPlatformBuild") - } - } -} - open class CheckIdeaVersionTask : DefaultTask() { private val releasesUrl = diff --git a/ide-laf-bridge/ide-laf-bridge-232/build.gradle.kts b/ide-laf-bridge/ide-laf-bridge-232/build.gradle.kts index f925819fa..cc51b7122 100644 --- a/ide-laf-bridge/ide-laf-bridge-232/build.gradle.kts +++ b/ide-laf-bridge/ide-laf-bridge-232/build.gradle.kts @@ -1,7 +1,7 @@ plugins { jewel `jewel-ij-publish` - `ide-version-check` + `ide-version-checker` alias(libs.plugins.composeDesktop) } diff --git a/ide-laf-bridge/ide-laf-bridge-233/build.gradle.kts b/ide-laf-bridge/ide-laf-bridge-233/build.gradle.kts index 8c7bbcc80..40259db2a 100644 --- a/ide-laf-bridge/ide-laf-bridge-233/build.gradle.kts +++ b/ide-laf-bridge/ide-laf-bridge-233/build.gradle.kts @@ -1,7 +1,7 @@ plugins { jewel `jewel-ij-publish` - `ide-version-check` + `ide-version-checker` alias(libs.plugins.composeDesktop) }