@@ -4,12 +4,20 @@ plugins {
44 alias(libs.plugins.kotlinJvm)
55 alias(libs.plugins.jetbrainsCompose)
66 alias(libs.plugins.composeCompiler)
7- alias(libs.plugins.jetbrainsIntellij )
7+ alias(libs.plugins.intellijPlatform )
88 alias(libs.plugins.jetbrainsChangelog)
99}
1010
1111version = properties(" pluginVersion" ).get()
1212
13+ repositories {
14+ mavenCentral()
15+
16+ intellijPlatform {
17+ defaultRepositories()
18+ }
19+ }
20+
1321dependencies {
1422 implementation(compose.desktop.linux_x64) {
1523 exclude(group = " org.jetbrains.kotlinx" )
@@ -26,37 +34,49 @@ dependencies {
2634 implementation(project(" :shared" )) {
2735 exclude(group = " org.jetbrains.kotlinx" )
2836 }
29- }
3037
31- intellij {
32- pluginName = properties(" pluginName" ).get()
33- version = libs.versions.intellij.platform.get()
34- type = properties(" platformType" ).get()
38+ intellijPlatform {
39+ intellijIdea(" 2025.1" )
40+ }
3541}
3642
37- tasks {
38- buildSearchableOptions {
39- enabled = false
40- }
41- patchPluginXml {
43+ intellijPlatform {
44+ pluginConfiguration {
45+ name = properties(" pluginName" ).get()
4246 version = properties(" pluginVersion" ).get()
43- sinceBuild = properties(" pluginSinceBuild" ).get()
44- untilBuild = properties(" pluginUntilBuild" ).get()
45-
46- changeNotes.set("""
47- <ul>
48- <li>Bumped IntelliJ plugin versions (min: 243.*, max: 263.*)</li>
49- <li>Compose Desktop dependencies to 1.6.11</li>
50- <li>Exclude coroutines for IJ plugin to avoid class loader conflicts with Compose</li>
51- </ul>
52- """ )
47+
48+ ideaVersion {
49+ sinceBuild = properties(" pluginSinceBuild" ).get()
50+ untilBuild = properties(" pluginUntilBuild" ).get()
51+ }
52+
53+ changeNotes = """
54+ <ul>
55+ <li>Bumped IntelliJ plugin versions (min: 243, max: 263.*)</li>
56+ <li>Compose Desktop dependencies to 1.6.11</li>
57+ <li>Exclude coroutines for IJ plugin to avoid class loader conflicts with Compose</li>
58+ </ul>
59+ """
5360 }
61+
62+ buildSearchableOptions = false
5463}
5564
5665kotlin {
57- jvmToolchain(17 )
66+ jvmToolchain(21 )
5867}
5968
6069tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
61- kotlinOptions.jvmTarget = " 17"
70+ compilerOptions {
71+ jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_21 )
72+ }
73+ }
74+
75+ // Skip tasks that require JBR download
76+ tasks.named(" buildSearchableOptions" ) {
77+ enabled = false
78+ }
79+
80+ tasks.named(" jarSearchableOptions" ) {
81+ enabled = false
6282}
0 commit comments