Skip to content

Commit

Permalink
Add Kotlin 2.0.0 to IJ plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Aug 7, 2024
1 parent d0e374f commit 6483a76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ktfmt_idea_plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.*

plugins {
java
alias(libs.plugins.kotlin)
alias(libs.plugins.intelliJPlatform)
alias(libs.plugins.spotless)
}
Expand All @@ -29,12 +30,7 @@ group = "com.facebook"

version = "$pluginVersion.$ktfmtVersion"

java {
toolchain {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
}
kotlin { jvmToolchain(17) }

repositories {
mavenCentral()
Expand Down
2 changes: 2 additions & 0 deletions ktfmt_idea_plugin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[versions]
googleJavaFormat = "1.23.0"
kotlin = "2.0.0"

# plugins
gradlePlugin-intelliJPlatform = "2.0.0"
Expand All @@ -9,5 +10,6 @@ gradlePlugin-spotless = "6.25.0"
googleJavaFormat = { module = "com.google.googlejavaformat:google-java-format", version.ref = "googleJavaFormat" }

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "gradlePlugin-intelliJPlatform" }
spotless = { id = "com.diffplug.spotless", version.ref = "gradlePlugin-spotless" }

0 comments on commit 6483a76

Please sign in to comment.