Skip to content

Commit 4a19556

Browse files
authored
fix: Fix compatibility with IntelliJ IDEA Ultimate IU-251.26094.121+ (#1249)
1 parent e0d386b commit 4a19556

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue Jun 17 13:43:26 CST 2025
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

idea-plugin/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ group = "com.itangcent"
66
version = properties["plugin_version"]!!
77

88
val intellijVersions = arrayOf(
9+
mapOf("jdk" to 21, "version" to "2025.1.2", "since" to "251"),
910
mapOf("jdk" to 17, "version" to "2023.1.3", "since" to "231"),
1011
mapOf("jdk" to 15, "version" to "2022.2.3", "since" to "223"),
1112
mapOf("jdk" to 11, "version" to "2021.2.1", "since" to "212")
@@ -95,6 +96,7 @@ dependencies {
9596

9697
testImplementation("org.jetbrains.kotlin:kotlin-test")
9798

99+
testImplementation("junit:junit:4.13.2")
98100
testImplementation("org.junit.jupiter:junit-jupiter-params:${properties["junit_version"]}")
99101
testImplementation("org.junit.jupiter:junit-jupiter-api:${properties["junit_version"]}")
100102
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${properties["junit_version"]}")
@@ -122,20 +124,20 @@ tasks {
122124
sinceBuild.set(intellijSince)
123125
untilBuild.set("")
124126
}
125-
127+
126128
// Add a task to clean the bin directory
127129
register<Delete>("cleanBin") {
128130
delete("bin")
129131
doLast {
130132
println("Cleaned bin directory")
131133
}
132134
}
133-
135+
134136
// Hook into existing tasks
135137
getByName("clean") {
136138
dependsOn("cleanBin")
137139
}
138-
140+
139141
getByName("build") {
140142
finalizedBy("cleanBin")
141143
}

idea-plugin/src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
<!--<depends optional="true">com.intellij.modules.idea</depends>-->
2525

2626
<depends optional="true" config-file="easy-api-kotlin.xml">org.jetbrains.kotlin</depends>
27-
<depends optional="true" config-file="easy-api-scala.xml">org.intellij.scala</depends>
27+
<depends optional="true">org.jetbrains.idea.maven</depends>
28+
<depends optional="true">com.intellij.gradle</depends>
2829

2930
<extensions defaultExtensionNs="com.intellij">
3031
<!-- Add the tool window extension -->
@@ -35,4 +36,4 @@
3536
factoryClass="com.itangcent.idea.plugin.api.dashboard.ApiDashboardToolWindow"/>
3637
<notificationGroup id="EasyApi Notifications" displayType="BALLOON" />
3738
</extensions>
38-
</idea-plugin>
39+
</idea-plugin>

0 commit comments

Comments
 (0)