Skip to content

Commit

Permalink
Use new plugin format
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Oct 25, 2023
1 parent 6e92f6b commit 03dd4e8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
4 changes: 0 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/ide-version-checker.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import org.jetbrains.jewel.buildlogic.ideversion.CheckIdeaVersionTask

tasks.register<CheckIdeaVersionTask>("checkLatestIntelliJPlatformBuild")
Original file line number Diff line number Diff line change
Expand Up @@ -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<Project> {

final override fun apply(target: Project) {
with(target) {
tasks.register<CheckIdeaVersionTask>("checkLatestIntelliJPlatformBuild")
}
}
}

open class CheckIdeaVersionTask : DefaultTask() {

private val releasesUrl =
Expand Down
2 changes: 1 addition & 1 deletion ide-laf-bridge/ide-laf-bridge-232/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
jewel
`jewel-ij-publish`
`ide-version-check`
`ide-version-checker`
alias(libs.plugins.composeDesktop)
}

Expand Down
2 changes: 1 addition & 1 deletion ide-laf-bridge/ide-laf-bridge-233/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
jewel
`jewel-ij-publish`
`ide-version-check`
`ide-version-checker`
alias(libs.plugins.composeDesktop)
}

Expand Down

0 comments on commit 03dd4e8

Please sign in to comment.