diff --git a/build.gradle.kts b/build.gradle.kts index 237bb23..f69c71f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.intellij.platform.gradle.TestFrameworkType plugins { id("java") id("org.jetbrains.kotlin.jvm") version "1.9.21" - id("org.jetbrains.intellij.platform") version "2.0.0" + id("org.jetbrains.intellij.platform") version "2.1.0" id("com.diffplug.spotless") version "7.0.0.BETA2" id("com.adarshr.test-logger") version "4.0.0" @@ -18,18 +18,6 @@ val publishChannel = "Stable" } -intellijPlatform { - pluginConfiguration { - version = - if (hasProperty("projVersion")) { - property("projVersion") as String - } else { - "1.0-SNAPSHOT" - } - } - pluginVerification { ides { recommended() } } -} - java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 @@ -44,7 +32,7 @@ repositories { dependencies { intellijPlatform { - create("IU", "2023.3") + intellijIdeaUltimate("2023.3") bundledPlugin("com.intellij.java") bundledPlugin("org.jetbrains.idea.maven") bundledPlugin("org.jetbrains.plugins.gradle") @@ -62,6 +50,18 @@ dependencies { testImplementation("junit:junit:4.13.2") } +intellijPlatform { + pluginConfiguration { + version = + if (hasProperty("projVersion")) { + property("projVersion") as String + } else { + "1.0-SNAPSHOT" + } + } + pluginVerification { ides { recommended() } } +} + configure { kotlin { // by default the target is every '.kt' and '.kts` file in the java sourcesets