Skip to content

Commit

Permalink
Convert IJ Plugin to Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Aug 7, 2024
1 parent 6483a76 commit f1ab875
Show file tree
Hide file tree
Showing 14 changed files with 327 additions and 621 deletions.
61 changes: 27 additions & 34 deletions ktfmt_idea_plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.*
*/

plugins {
java
alias(libs.plugins.kotlin)
alias(libs.plugins.intelliJPlatform)
alias(libs.plugins.spotless)
java
alias(libs.plugins.kotlin)
alias(libs.plugins.intelliJPlatform)
alias(libs.plugins.spotless)
}

val ktfmtVersion = rootProject.file("../version.txt").readText().trim()
Expand All @@ -33,45 +33,38 @@ version = "$pluginVersion.$ktfmtVersion"
kotlin { jvmToolchain(17) }

repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
mavenLocal()
mavenCentral()
intellijPlatform { defaultRepositories() }
mavenLocal()
}

dependencies {
intellijPlatform {
create(IntellijIdeaCommunity, "2022.3")
instrumentationTools()
pluginVerifier()
zipSigner()
}
implementation("com.facebook", "ktfmt", ktfmtVersion)
implementation(libs.googleJavaFormat)
intellijPlatform {
create(IntellijIdeaCommunity, "2022.3")
instrumentationTools()
pluginVerifier()
zipSigner()
}

implementation("com.facebook", "ktfmt", ktfmtVersion)
implementation(libs.googleJavaFormat)
}

intellijPlatform {
pluginConfiguration.ideaVersion {
sinceBuild = "223.7571.182" // 2022.3
untilBuild = provider { null }
}
pluginConfiguration.ideaVersion {
sinceBuild = "223.7571.182" // 2022.3
untilBuild = provider { null }
}

publishing {
token = System.getenv("JETBRAINS_MARKETPLACE_TOKEN")
}
publishing { token = System.getenv("JETBRAINS_MARKETPLACE_TOKEN") }

pluginVerification {
ides {
recommended()
}
}
pluginVerification { ides { recommended() } }
}

spotless { java { googleJavaFormat(libs.versions.googleJavaFormat.get()) } }

val runIntellij242 by intellijPlatformTesting.runIde.registering {
type = IntellijIdeaCommunity
version = "2024.2"
}
val runIntellij242 by
intellijPlatformTesting.runIde.registering {
type = IntellijIdeaCommunity
version = "2024.2"
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f1ab875

Please sign in to comment.